calling global methods from within calculated fields

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

calling global methods from within calculated fields

Postby RobertMeyer » Sat Apr 10, 2004 5:37 pm

i see that when editing a calculated field in the method editor,
under globals, i can only see global variables, not global
methods.

i also noticed that i can enter the name of a global method
in the calculation, and it works great!

the question is: is this ok to do? will i get in trouble doing
this?

thanks
rm.
RobertMeyer
 
Posts: 268
Joined: Sat Dec 27, 2003 9:05 pm

Postby jcompagner » Sat Apr 10, 2004 8:09 pm

methods can access everything like elements in a form or other dataproviders from every form they want..
And that will make it very dangerous to use them in calculations. But if you only use global methods for some handy functions that don't touch anything else should work fine.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 6 guests