When setting up the the Query widget in the Web App Builder (WAB), I was able to add the query results to the layer list that my users could then toggle on and off.
I am able to configure the Query widget to add the selection results as a graphic to the map but it unfortunately does not appear in the Layer List.
I would really appreciate it if you could add the functionality that automatically adds the query results graphic to the layer list in Experience Builder (ExB). This is not something new that I am asking for but merely including preexisting functionality, which was available in the WAB, in to the Query widget in ExB.
Original Thread:
Create a new layer every time the query is execute... - Esri Community
Hi DBJ,
I came across the same obstacle migrating from WAB to ExB.
If you still are still trying to get the Query widget in ExB to work like WAB with Specify how the query task creates layers -Overwrite the layer every time the query is executed.
Here is how you can can configure the Query widget in the Action tab.
Click on Action -> Message action -> Add a trigger -> Records created.
In Records created click on Add action. In the Select a target click on Map.
Then click on Zoom to and Show on Map.
Screenshots from ExB, AGOL JavaScript 4.32.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.