controller.saveData vs. databaseManager.saveData

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

controller.saveData vs. databaseManager.saveData

Postby amcgilly » Thu Apr 05, 2007 11:51 pm

According to the documentation, controller.saveData() does the exact same thing as databaseManager.saveData(). IF this is the case, then I suggest Servoy depricate controller.saveData() in future versions. I think it is confusing to leave it there and I've seen many cases where programmers do this:

Code: Select all
forms.lineItems.controller.saveData()


because they think that in order to save data on the lineItems form they have to use its controller. Simpler is better.
Adrian McGilly
Servoy Developer

Image
amcgilly
 
Posts: 375
Joined: Fri Dec 09, 2005 12:03 am
Location: San Francisco, CA

Postby ngervasi » Fri Apr 06, 2007 2:17 am

I perfectly agree: forms.xxx.controller.saveData() saves all outstanding changes to the database, not only the changes for the xxx form so it shouldn't be "form related".
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Postby Jan Aleman » Fri Apr 06, 2007 9:33 am

That's exactly how it works in 3.5
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby clintboss32 » Fri Apr 06, 2007 1:06 pm

Do we have a published feature set of Servoy 3.5 yet?
User avatar
clintboss32
 
Posts: 23
Joined: Thu Apr 05, 2007 8:36 pm

Postby Jan Aleman » Fri Apr 06, 2007 1:19 pm

The features were introduced to SAN members last night a general public release will appear a bit later.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 8 guests

cron