Page 1 of 1

New function

PostPosted: Wed Nov 21, 2007 12:33 pm
by martinh
Do we have a new function in Servoy?
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 :P Servoy gives an error

PostPosted: Wed Nov 21, 2007 12:37 pm
by patrick
That function is not so new. Anyway, there is an error in the documentation. It's

Code: Select all
databaseManager.setAutoSave()


as mentioned at one point in the text above...