Page 1 of 1

valuelist manipulation

PostPosted: Tue Jan 24, 2017 8:00 pm
by dosida
Hey guys,

I'm wondering how one can manipulate a value list through code.

Are there any examples around? If so please point me to the right direction.

Thanks in advance.

Re: valuelist manipulation

PostPosted: Tue Jan 24, 2017 10:03 pm
by jdbruijn
Welcome to the Servoy Community.

You can get all this information from the Servoy Wiki.
Take a look at these urls:
https://wiki.servoy.com/display/public/DOCS/Application#Application-getValueListArray(name) to get the valuelist items as an array
and
https://wiki.servoy.com/display/public/DOCS/Application#Application-setValueListItems(name,dataset) to create a valuelist from a dataset
There are also some code examples in the wiki for this.