Include non-stored calculated fields to show in Value Lists

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

Include non-stored calculated fields to show in Value Lists

Postby Willem » Wed Jul 05, 2006 3:06 pm

I'd like to include non-stored calculated fields in value lists in order to display values from related records.
Willem
 
Posts: 22
Joined: Tue Sep 28, 2004 9:19 pm
Location: Delft, the Netherlands

Postby swingman » Wed Jul 05, 2006 4:16 pm

Maybe you don't need an unstored calc. If the calc is doing something simple, like looking up a value from another table, you can already do this yourself if you know SQL.

1) use getDataSetByQuery() to create a dataset containing the values for the valuelist, you can query any table you want using any criteria :-)
2) The Application node in the script editor has a method for setting a value list using a dataset.

You can write a method to do this and trigger it onRecordSelect of your editing screen.

We use it a lot. It is fast.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Postby Willem » Wed Jul 12, 2006 9:40 am

Thanks, Christian. That's a nice workaround. And it helped me to extend my SQL-experience ;-).
Willem Schouten
Ayton B.V.
Willem
 
Posts: 22
Joined: Tue Sep 28, 2004 9:19 pm
Location: Delft, the Netherlands


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests