Ability to filter multiple layers based on a common field

13515
45
04-28-2022 12:58 AM
Status: Open
Labels (3)
BlairPellegrino
Occasional Contributor

When using the filter widget in Experience Builder, it currently only applies to a single data source / layer.  This is proving to be a major limitation when creating experiences that have multiple layers with a common field.  Ideally I need that filter to apply to all layers based on the common field in all layers.

For example, I have added two maps side-by-side on my page - one with a layer for "scenario A" and the other with a layer for "scenario B".  The attribute tables of both layers have a common "region" field.  I've added a filter widget that filters on the "region" field from the "scenario A" layer, but there is no way for that filter to flow through to the "scenario B" layer.

In Dashboards, this can be achieved under the category selector actions by selecting the source field and the target field.  Similar functionality in Experience Builder would be really useful.

This Experience Builder question here also requests the same functionality.

45 Comments
JeffreyThompson2

@SFM_TravisBott I agree with you. It is not ideal, but there are other ways to use this trick. It doesn't have to be through a List.

I set up a filter on LayerA. Then, I go to the Map widget and add a record selection changes action to LayerA and have it filter LayerB. From a user's perspective, filtering LayerA also filters LayerB. 

SFM_TravisBott

@JeffreyThompson2 That's actually a great idea and I hadn't considered it. Thank you for sharing. 

JeffreyThompson2

@SFM_TravisBott This whole thread is a great example of why I am starting an Experience Builder Tips and Tricks User Group. Coming soon to Esri Community. I hope to see you all there. 😃

cat206
by

There's a blog that suggests you can use the search function which seems to work for me in the interim Filter multiple layers at once in ArcGIS Experience Builder (esri.com)

JeffreyThompson2
SFM_TravisBott

@JeffreyThompson2 well heck I appreciate your effort, and for coming back and trying to fill me/us in. 

I'm going to go back to shaking my fist at Esri's lack of foresight. 

JessicaGough

Please add this feature!

BrettHe

2 years and nothing. Esri - do better

JoePlattner

Glad to find out I'm not the only one who wasn't able to get this to work using the current filter widget.

Implementing the ability to filter across multiple datasets using a single filter, like you can with a dashboard would provide a much better "experience" for the users of the user of the App I'm trying to create.

 

If I didn't need some of the mapping widgets only included with experience builder, I would have considered embedding the dashboards in my "experience" project.

 

BlakeMorrison

@JeffreyThompson2I feel like I'm missing something trying to implement your workaround.

The filter widget doesn't select the data, it only filters it. The Map widget only has a message action for "record selection changes", thus isn't triggered when I filter with the filter widget.

 

Is part of the workaround the user needing to manually select data in the map widget?