I'm using the Filter Widget in an application created with Web AppBuilder 2.11 Developer Edition.
The application needs to set the filter listed dropdown values programmatically from info obtained from the currently logged user.
In the image above I have set up the filter widget to ask for values from a field in a specific layer (Region in this example).
I want to show only a subset of all the regions that the widget shows by default.
Is there a way to specify programmatically the options that the dropdown must show?
Another possible approach to solve my situation is to make the Filter Widget respect the layer definition expression.
How can I do that? If the widget respects the layer definition expression, the dropdown will only show values returned
from the definition expression?
Hi Diego,
Are you using dijit/form/Select to build your dropdown list?
I recently did similar stuff for a client: the Recommendation Type changed when subject changed.
piece of the codes:
HTML:
Leo, thank you for your reply. Unfortunately, your recommendation did not work. It was the method we thought we could do it, but the filter uses a custom widget instead of a Select from Dojo.