New function

General Forum for posting info for Servoy books, ezines or training cd's

New function

Postby martinh » Wed Nov 21, 2007 12:33 pm

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
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium

Postby patrick » Wed Nov 21, 2007 12:37 pm

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...
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3606
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany


Return to Books & Training

Who is online

Users browsing this forum: No registered users and 6 guests

cron