Rollback but keeps the first change

Hi everybody,

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:

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 :roll:

at what time do you set databasemanager.setAutoSave(false) ?

jcompagner:
at what time do you set databasemanager.setAutoSave(false) ?

I didn’t check actually! I though it was already OFF as it rolls back the other changes. :oops: