Object null added in list

0
When I create an object and access the customer form page and then if I click on any button to access another page, except the cancel button, when I return to the customer list there is a null item added, does anyone know how to fix this bug?
asked
2 answers
2

Some questions

  1. How do you create the object? default create button or microflow/nanoflow?
  2. When creating in a microflow/nanoflow: do you commit the object?
  3. What is the datasource of the list?

 

Edit

Your issue is the data source, you show it over association.

You create an object in memory, and then navigate away, without cleaning up the object created in memory. Which will automatically be cleaned up by the garbage collection. but housekeeping is sometimes delayed ;-)

Secondly, by using the by association datasource, you show associated objects sourced from memory. And thus new not committed objects are displayed.

You should use database + over association instead. This will show only committed objects (records) in the list.

 

 

answered
0

I suspect you are creating the object and committing the object first used, but not committing it after you have changedit. You are then trying to access the object using a retrieve from database so the uncommitted changes are being lost, and the original blank object is being returned. The solution would be to either not commit initially, so if you navigate away the changes are lost, or to commit after you have made the changes so they are stored.

Good luck

answered