Dynamic change of valuelist?

Forum to discuss the new web client version of Servoy.

Dynamic change of valuelist?

Postby rieder » Mon Mar 22, 2021 10:42 am

Hi

Is it possible, to dynamically change the valuelist of a bootstrap combobox?
If yes: How could this be done?

Thank you and regards
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 140
Joined: Thu Jan 26, 2012 5:18 pm

Re: Dynamic change of valuelist?

Postby mboegem » Mon Mar 22, 2021 10:28 pm

Hi Birgit,

this should be possible with application.setValuelistItems or use the global valuelist method option to show context based content.
A 3rd option would be to base the valuelist upon an in memory table and populate the table with the values you need.

Hope this helps
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1572
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Dynamic change of valuelist?

Postby rieder » Mon Apr 26, 2021 9:57 am

Hi Marc

Sorry for my late response. And thank you for the answer.

Yes, changing the items of the attached valuelist (together with application.updateUI()) is the solution.
Which I did not think of. I was looking for a possibility to set an other valuelist on the forms element like field.setValueListItems(values).
Anyway, with your answer I can implement what I wanted.

Best regards
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 140
Joined: Thu Jan 26, 2012 5:18 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 4 guests

cron