Select to view content in your preferred language

Create a new layer every time the query is executed in Experience Builder

580
1
05-28-2024 06:07 AM
Status: Open
Labels (2)
DJB
by
Regular Contributor

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.  

DJB_0-1716901175965.png

 


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

Tags (1)
1 Comment
AGrim
by

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.

1a.jpg

In Records created click on Add action. In the Select a target click on Map.

3.jpg

Then click on Zoom to and Show on Map.

4.jpg

Screenshots from ExB, AGOL JavaScript 4.32.

https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/query-widget.htm#ESRI_SECTION1... 

Hope this helps.