Do you want to leave without saving - how to realize

0
Hi, I have wizard, where an user can walk trough and save the draft without finishing the wizard. How can I check, whether an user made changes to the object in the wizard and ask him, if he really wants to leave without saving? I already thought about a boolean “_DraftIsSaved”, but this would not work when the user saves, does changes again and then leaves the wizard. Thank you!
asked
4 answers
1

I think your intial idea can work just fine if you let any changes also update the DraftSaved boolean to false.

answered
1

Hi, I would suggest, Create another date time attribute (draft date time) and update when saved as draft and when user made more changes and didn't saved and you would like to show a message if he really want to exit or cancel without saving, then compare the last drafted date time with last updated record date time and show a message to user to save changes.

answered
1

There is a widget for that Bizzomate LeaveAction: https://marketplace.mendix.com/link/component/78474

You only need to test in on your current Mendix version.

Regards,

Ronald

 

answered
0

FYI: The community commons also deliver what is needed. :-)

answered