AppStudio Map Viewer filter

313
1
04-09-2021 06:05 PM
pketeldijk
New Contributor

I am trying to add a filter functionality to MapViewer template. I have a work order feature layer with a field: Status. I would like to filter by field Status: [Open] - [Planned] - [In progress] - [On hold]. 

I saw a post by @ErwinSoekianto (https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/td-p/857919) where he proposes to use the Graticules panel as a filter. I have none to very limited knowledge of Qt coding. 

Can someone help me with the code and steps to add the filter to the Graticules panel or any other solutions? Is there a possibility to add more than one filter? 

Tags (2)
0 Kudos
1 Reply
ErwinSoekianto
Esri Regular Contributor

@pketeldijk 

 

Too bad we don't have exactly the same sample you are looking for, for customizing a template requires some QML coding skills. 

The closest sample I could find is this Feature Layer Query from ArcGIS Runtime Qt, https://developers.arcgis.com/qt/qml/sample-code/feature-layer-query/ 

I would use this sample, and once the user is selecting the radio button that list your status selection, then it will perform the query to the feature layer following the sample above. 

 

I hope this is helpful.

Erwin. 

0 Kudos