Page 1 of 1

Valuelists with limited scope

PostPosted: Wed May 26, 2010 8:01 pm
by ronm
Servoy now has global variables as well as form variables. It would be nice to have global valuelists as well as form valuelists.

In very complex applications, valuelists are used to limit the user's inputs to a specific set of values however across the application, the number of valuelist can get quite large.

Simply using valuelist1, valuelist2, etc. and reusing the valuelist as one traverses the various forms saves computer memory but damages the human memory :wink:

Having a valuelist whose scope is limited to the form allows the values list to be refreshed by the onShow or onRecordSelection methods and saves memory as memory should only be consumed while the form is shown and not hidden.

Re: Valuelists with limited scope

PostPosted: Thu May 27, 2010 4:31 pm
by jcompagner
so what you want is 1 valuelist definition and that one is used on multiply forms but the valuelist has different values and dont interact with each other over the different forms?
So thats multiply instances of the same valuelist definition? How would you target such a thing to load your values?