custom valuelist feature

What I really miss is that users (and developers desiging the whole thing) can simply edit custom-valuelist, like the Filemaker-way!

Just as simple select a property: allow Edit and below the valuelist comes automaticly: Edit…

Now I am building for every valuelist a table and a form, which is nice too, but very time-consuming. Many of my valuelists would satisfy with such a feature.

I know you can build your own valuelist, by quering the whole thing and load it every time the solution is started, but..
I prefer the simple way! :)

HJK:
What I really miss is that users (and developers desiging the whole thing) can simply edit custom-valuelist, like the Filemaker-way!

Just as simple select a property: allow Edit and below the valuelist comes automaticly: Edit…

Totally agree! Is there allready something implemented or handy trick for this?

you could do it with one table and one form.

valuelists
id|vlname|displayvalue|idvalue

build one form on that one and build a relation per valuelist OR do you search youreself for a valuelist.

Then every valuelist you have could have a entry on the end (filled in by youreself “edit…”) and on datachange you see if it was that value and if that was the case you show that form based on the valuelist table.

We can’t do it automatic in servoy very easy because we have no idea where the data must be stored. We can’t store in in the custom valuelist itself because clients can’t alter the solution object in anyway this will not change.

jcompagner:
you could do it with one table and one form.

valuelists
id|vlname|displayvalue|idvalue

build one form on that one and build a relation per valuelist OR do you search youreself for a valuelist.

Roger, Johan! Thanks for the tip.

jcompagner:
We can’t do it automatic in servoy very easy because we have no idea where the data must be stored. We can’t store in in the custom valuelist itself because clients can’t alter the solution object in anyway this will not change.

What about SetValueList? Is this available to clients? Could it be used to advantage here, along with GetValueList?

what do you mean with setValueList?
you have application.setValueListItems() so that you can alter a custom valuelist to youre needs.

That was my question. You said that the client can’t alter the solution object. I was wondering if there was an elegant way to allow the editing of custom value lists using getValueListItems() and setValueListItems()

Someone posted a HOW TO on custom value lists a couple of weeks ago…

[Tutorial] Dynamic Valuelists Without Any Coding

by Adrian McGilly

on www.servoymagazine.com

THanks! I haven’t delved into Servoy Magazine until now.