The documentation 3.5 DevRefGuide mentions the function
- Code: Select all
application.setAutoSave()
See fragment from document:
Function setAutoSave
Description Sets autosave as enabled or disabled; if set to false, then there will be no changes
displayed in the user interface until the function databaseManager.saveData() is
called or setAutoSave(true).
Syntax
databaseManager.setAutoSave(boolean autoSave)
Parameters
boolean autoSave - true = autosave is enabled; false = autosave is disabled.
NOTE: When databaseManager.setAutoSave(false) is used to disable the auto save,
data will not be saved unless you use setAutoSave(true), or call the function
saveData().
NOTE: application.setAutoSave(false) will also prevent data from being saved when selecting a different record.
But unfortunately when using this new function Servoy gives an error