Ability to filter multiple layers based on a common field

10454
41
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.

41 Comments
JeffreyThompson2

@BlakeMorrison Upon further research, the workaround does not quite work. It is useful for limited purposes like making one list filter another, but it's not broadly useful.

More information here. Check the comments for more possible workarounds. https://community.esri.com/t5/experience-builder-tips-and-tricks/using-one-datasource-to-filter-anot...

BrittanyBurson

Crucial to our UX. Please add. Thank you

PamelaLocke1

Definitely need this!  So many of my web apps from WebAppBuilder rely on the ability to filter multiple layers using the Group Filter Widget.

JeffreyThompson2

JeffreyThompson2_0-1706891265082.png

Scheduled to be in the next update

BlairPellegrino

Sounds promising @JeffreyThompson2 !! 🤞

wayfaringrob

sick!

TonghuiMing

The new group filtering capability has been provided in the Filter widget, along with the latest AGOL release:

Add a group for multiple data sources

TonghuiMing_0-1709197057877.png

Add expressions using the Group SQL Expression Builder

TonghuiMing_1-1709197174610.png

At runtime, use the same style with a regular filter item to filter across multiple layers:

TonghuiMing_2-1709197534106.png

 

TI
by

Is it possible to pass a value to this widget as a GET parameter in the URL?

TonghuiMing

@TI Since we will need to populate values from the main field associated data source for the type, operator, and values as what you would need to configure in this OOTB widget, I don't think we can do that through URL.

TI
by

That makes sense.  In Web App Builder, we had a group filter widget which could be applied to multiple layers using a single search term (filtering on the same field in each layer), and therefore it could be included in the URL parameters.  This was incredibly useful for us, and I would like to be able to do this in Experience Builder.