Empty object after browser refresh

0
The new button in my form is a MF which creates a new object and makes required changes to it (NO commit) before showing it in a NewEdit form. Then I decide to hit the F5 button in my browser and the application is back on its homepage. Now I am stuck with an "empty" object in the database where the not-committed changes have not made it. What is the best practice to deal with this? Regards, Paul
asked
2 answers
1

See this

There are several ways to clean up empty objects. Look around this forum and you will find some relevant questions from other users.

answered
1

Search results are based on what you enter to look for. On empty object and empty record I finally found some posts that deal with the subject. Filtering seems to be the way to go, eventually with a garbage collector than runs periodically. But this makes my application patchwork.

Users do things that you would not expect, and navigating away from a new-form is one of them. This should be handled by the core (Mendix) and not by the developers creating filters and adding attributes to each form and entity to make it full-proof and fool-proof.

FYI, two posts that I found helpful - https://forum.mendix.com/questions/1890/Handling-empty-and-useless-objects - https://forum.mendix.com/questions/2043/Empty-Records-Handling

answered