Select to view content in your preferred language

Select widget woes

154
3
12-23-2024 06:50 AM
davidchamberlain2
Regular Contributor

Hi,

I want to be able to select all the data from multiple layers that are inside the boundary of another polygon in experience builder. I  have parish polygons and I want the user to click on one and get a return in the popup that includes all the data from the other layers that are partially or wholly within it. I have messed with the select widget settings for hours but it wont play ball. The layers are selectable individually. I have set up the parish layer as the selecting layer in the widget. Does anyone have this working and can share how they have set this widget up to do this?

Thanks

Dave 

0 Kudos
3 Replies
JRhodes
Frequent Contributor

Hi Dave, if returning data in the popup is your only requirement, would an Arcade intersect not work, skipping the Select widget entirely and just showing the data on click?

0 Kudos
davidchamberlain2
Regular Contributor

Hi @JRhodes ,

From what I can gather I would have to list all the layers I want to be selectable in the expression. I have a lot of layers! Also this project is likely to change and be republished often which would mean configuring the expression regularly. So its a possibility yes and thank you for the suggestion. I didnt know this could be done in arcade. Given my situation I could do with something that will just work no matter if the layers are changed. The select widget seems to offer this but I cant get it to work! Any advice on the widget or any other way of doing this would be gratefully received as its doing my head in!

Thanks

Dave

 

0 Kudos
JRhodes
Frequent Contributor

Hi Dave, yes you would have to specify the layers in an Arcade expression and configure the popup according to your layers/expression(s). Possibly a better user experience but you'd have to decide if maintaining is worth it if your map layers change frequently.

If you decide that the Select widget is the way to go, this seems to work for me:

1. Enable "spatial selection" on the Select widget configuration, with your parishes as the selecting data.

2. Open your Experience and open the Select widget (unless it's configured to open automatically on load).

3. Click a parish to select it.

4. In the Select widget, activate the tool by clicking the button in the upper right so it turns blue**, then click the dropdown and choose Select by Data:

JosephRhodes2_0-1735067590424.png

5. Click Apply:

JosephRhodes2_1-1735067672253.png

 

Now your features from the other layer are selected:

JosephRhodes2_2-1735067723521.png

 

 

** I wonder if this is where you're running into trouble, since it doesn't really make sense to me that you would have to activate the interactive selection tool to use Select by Data, but you do.