Select to view content in your preferred language

Query - Select All Results Without Using A Results List?

457
4
Jump to solution
09-17-2023 06:32 PM
AndyWells
Frequent Contributor

Is there a way to set a Query so that it automatically selects all results instead of providing a list of results? For example, I have a map with a Parcel layer. I have a Parcel List widget as well that shows what parcels are selected. 

Can I set up a query on the TotalAcres field, of the Parcel layer, where the user can insert a "between" range, like the Query widget normally allows. But once the user hits "Apply", instead of a results list appearing where the user must choose a single parcel, I'd like for everything in the results page to be automatically selected. Then I can use those results in the list and the user can review the list and click to unselect what they don't want in the list.

Thanks for any advice.

0 Kudos
1 Solution

Accepted Solutions
TianWen
Esri Contributor

You can configure the same SQL expression within a Select widget instead of a Query widget and set your Parcel List to use the 'selected features view' of the same data. This will help you achieve your intended goal.

TianWen_1-1718262689140.pngTianWen_2-1718262702795.png

 

View solution in original post

0 Kudos
4 Replies
TonghuiMing
Esri Regular Contributor

@AndyWells 

Query widget generates output data source; while it looks to me that what you've described there falls into the function of the Select widget.

Is a query widget needed because you specifically want to use the generated data source without affecting the original one?

0 Kudos
AndyWells
Frequent Contributor

I want to use Query so that for example, a user can search for all parcels between 50 & 100 acres:

AndyWells_0-1695003885472.png

Right now, if they click "Apply", they get this and they can only click one of these results.

AndyWells_1-1695003932985.png

Instead I'd like all of those Parcels to become selected automatically, instead of just the one that the user must click on. I don't even want to present the Results list at all, if that's possible.

 

AndyWells
Frequent Contributor

Just wondering if anyone had any more thoughts on this. Feels like I'm missing something. I think I should be able to query multiple features and not be forced to select only one. Thanks. 

0 Kudos
TianWen
Esri Contributor

You can configure the same SQL expression within a Select widget instead of a Query widget and set your Parcel List to use the 'selected features view' of the same data. This will help you achieve your intended goal.

TianWen_1-1718262689140.pngTianWen_2-1718262702795.png

 

0 Kudos