I am creating an experience building app in ArcGIS Online but don't understand how to get the query builder to create a unique list that the user can select on.
My dataset is a list of states with an attribute called 'State'.
I want the user to be presented with a unique list of "States" and then zoom to that result.
Solved! Go to Solution.
Thanks for the post!
Please follow the steps below:
1. Select your field and set the source type to 'Unique'. Then, choose the 'Ask for value' option.
2. Configure the "Records created" -> Map "Zoom to" message action
This will create the intended Query widget, allowing end users to select a value from the unique value list and then zoom to the query results.
I figured it out using the filter widget 🙂
Thanks for the post!
Please follow the steps below:
1. Select your field and set the source type to 'Unique'. Then, choose the 'Ask for value' option.
2. Configure the "Records created" -> Map "Zoom to" message action
This will create the intended Query widget, allowing end users to select a value from the unique value list and then zoom to the query results.
Hi, I am facing a problem while trying to apply query like this. I have the query widget with the condition set, but the dropdown menu is not visible, it is showing only loading, not displaying the list of values for the user to choose from.
I found the issue that the layers, when publishing, need to be in gdb; otherwise, it will be published without advanced query capabilities like orderBy, Distinct etc,. Now, once all the required layers are published from gdb, the query works perfectly.
Leaving this here in case someone else faces a similar problem.