Dynamically update dropdown / autocomplete control's datasource in SmartForms?


What I am trying to do is using a radio button list control to dictate what's being loaded into a DropDownList, Picker control or more ideally, a AutoComplete control. I know I can probably show / hide the controls too, but I wanted to see if there's a smarter way to handle this

 

Thank you


3 replies

Badge +5

Hi,

 

Hopefully I've unstand you correct.

I think you can do this with a "when radio button changed" -> "execute a smo method" and load the information for the Auto-Complete.

 

Kind regards

Alexander

Thanks for your reply... I can execute the smartobject method, but how would I bind the smart object to the autocomplete control? I tried setting the output mapping and it doesnt seem to work. It doesn't look like I can dynamically change the autocomplete control's datasource property either.

 

Badge +5

Okay you will change the DataSource of the Auto-Complete.

I don't think that there is away to do this.

What you can try is, that you create different Auto-Completes with different DataSources and you just show the Auto-Complete you need.

 

Kind Regards

Alexander

Reply