Select to view content in your preferred language

WAB Filter Widget, how to set dropdown selected option programatically?

1118
3
05-30-2019 02:13 PM
RamónVélez
Emerging Contributor

Hi, I'm using the Filter Widget in an application created with Web AppBuilder 2.11 Developer Edition.

Is there a way I can set programatically the value of a dropdown shown by the filter?Filter DropDown

In the image above I have set up the filter widget to ask for values from a field in a specific layer.
I want to programatically set that dropdown value so it filters the layer with the corresponding expression. 

The value I want to set is already listed in the dropdown. 

If that is not possible, is there a way to specify programatically the options that the dropdown must show?

Any ideas on how to do that?

Regards,

Ramon Velez

0 Kudos
3 Replies
RickeyFight
MVP Regular Contributor

Is this what you are trying to do? 

Predefined values? 

0 Kudos
RamónVélez
Emerging Contributor

In the application I want to show only a specific subset of all the possible values depending on the logged user.

So I must assign dinamically which values the dropdown must show.

Thanks for your reply.

0 Kudos
LeoLiu1
Frequent Contributor
0 Kudos