Select to view content in your preferred language

EB Query Widget Spatial Filter, show all features within multiple polygons

262
1
Jump to solution
03-20-2025 08:45 AM
DanCopKac
Frequent Contributor

tempQ.pngIn WAB, I could select a layer upon which to perform a spatial filter operation as part of the Query widget. I could for example, find all hydrants that fell within multiple municipality boundaries. 

In EB, I tried to do this using the Query widget, but it kept returning the full dataset. Then I noticed that in the widget, under Spatial Filter, it said 'Support selected features view only'. First off, I still don't really understand what this phrase means, and I definitely didn't understand it then; is it a command? Telling me to support something? Or that the widget only supports certain things? Whatever. 

Upon further study, I see that the widget also says '0 records are selected for the [spatial] filter'. So I try to click a municipality boundary, and the widget says '1 records are selected for the [spatial] filter'. I'm like, "No way this is real." But I try to run it anyway, so I click 'Apply', and now the operation doesn't return the full dataset! 

So I'm thinking, "Wait, do I really need to select every municipality boundary in order to find my answer? Are they for real right now?" And I try to select multiple municipalities, shift+click, ctrl+click, none of these work. So I can't even manually select my 50 municipality boundaries to run the spatial filter against. 

So what am I doing wrong? How would I find all the features in one layer that fall within my 50 polygons in another layer using the Query widget? The Query widget would be the answer in WAB, so my first thought was to use the Query widget in EB to do this. Am I using the wrong widget? Am I missing a critical setting in the EB Query widget? 

0 Kudos
1 Solution

Accepted Solutions
TianWen
Esri Contributor

There are two approaches to selecting multiple polygons for further spatial queries when the polygon layer is configured as a filter layer:

TianWen_1-1742981990399.png

 

1. Use the Select tool in the Map widget or the Select widget, which allows selecting multiple features. 

TianWen_0-1742981933737.png

 

2. Configure a data-centric widget (e.g., Table, List) with the polygon layer, where you can also select the desired polygon features.

Hope this helps!

View solution in original post

1 Reply
TianWen
Esri Contributor

There are two approaches to selecting multiple polygons for further spatial queries when the polygon layer is configured as a filter layer:

TianWen_1-1742981990399.png

 

1. Use the Select tool in the Map widget or the Select widget, which allows selecting multiple features. 

TianWen_0-1742981933737.png

 

2. Configure a data-centric widget (e.g., Table, List) with the polygon layer, where you can also select the desired polygon features.

Hope this helps!