I have a TabPanel containing a form which displays a list of options read from the database which can be checked/unchecked. The Check boxes are also linked to the database.
When the user clicks on the button "Cancel" or closed the window with the cross, I do:
- Code: Select all
databaseManager.rollbackEditedRecords();
databaseManager.rollbackTransaction();
application.closeFormDialog();
However if I tick/untick several options, and cancel it, all of them will be unsaved except the first change I made