Hi All
the method databasemanager.SetAutoSave(false) is not working in servoy 3.1.5 or 3.1.6 in all cases it saves you can’t disable the save function .
regards
saher
Hi All
the method databasemanager.SetAutoSave(false) is not working in servoy 3.1.5 or 3.1.6 in all cases it saves you can’t disable the save function .
regards
saher
What do you mean by “save function”? auto save refers to automatic saving by Servoy if the user clicks in the background of a form for example. If you call saveData(), data will be saved no matter how auto save is set.
Hi
I know what you mean but i want to disable the autosave … i want the save function to be button driven … this function was working before in earlier servoy versions … when you set databasemanger.SetAutosave(false) it used to disable the auto save in servoy.
Regards
Saher
Saher,
I just tried a small example in 3.1.6 and setting autosave to false works as expected.
Can you show some snippets of your code so maybe we can see where it goes wrong?
Rob
databaseManager.setAutoSave(false);
globals._m_set_locale();
Sorry i was late in answering this is the global method that i started my program with … and it still saves automatically .
i’m using Servoy 3.5 … by the way i was using earlier version of 2.X and it was working fine and when i wanted to save i trigger the following method :
databaseManager.saveData()
Regards
Saher
Saher,
You have to check the boolean return value of databasemanager.SetAutoSave(false).
It may fail (return false) because the user is editing a field that cannot be saved due to some validation.
Rob
Rob
Everytime i have a method to check the boolean and it returns (false) even though it saves automatically … from my experience using this method it straight forward unless there is something i’m missing.
you start your program with it and you initiate the save method when you want to save data to the database … but i wonder why { startTransaction() … commitData() } methods doing the same effect .
I would really appreaciate it if you could give me some clarfication
Regards
Saher
Hi Saher,
I can’t reproduce the problem with Servoy 3.5 either.
Please file a bug report in our support system with a sample solution that demonstrates the problem attached.
Our support system is at
http://crm.servoy.com/servoy-webclient/ … oy_support