Trying to figure out how to build a multi field search or filter that will work on the viewer template, is it possible or do I need to get out of the viewer template and have it facing one solo reference map?#appstudio 4.1
Cody,
It is possible to do it in both inside Map Viewer template, I would recommend re-purposing or copying the current search places panel that we already have, and then add another input text fields as needed. The source for this panel is MapViewer/views/SearchPage.qml.
Thank you,
Erwin
Is it possible to do it based on a feature? Thank you
Yes, and in this case, this could be supported out of the box in the Map Viewer template. First, you need to enable the search to layer in the WebMap setting in ArcGIS Online, then you can specify which field(s) you want the search based on. Then, a new tab will appear in the Search Panel, Feature search, in Map Viewer template (based on AppStudio 4.1) of the webmap.
I followed the steps exactly and it will allow me to search on one, but not both fields under the same feature at once example: If I want to search a pole number, I'd need to search town and pole number to find it, we could have 100's if not 1000s of poles with the same number in different towns. Right now it's allow me to search on one of the fields at a time not both, is it possible to search on both at the same time/or is this there a way to make a filter to do this?
Happy Friday!
I see, it looks like it is not available in the out of the box Map Viewer template, as of today AppStudio 4.1. I would recommend re-purposing or copying the current search places panel that we already have, and then add another input text fields as needed. The source for this panel is MapViewer/views/SearchPage.qml.
If you would like to have this added in out of the box Map Viewer template, I would recommend submitting an official enhancement request with Esri Technical Support
Thank you!
I'm in the searchpage.qml, confused though, which lines should I copy (from the template) to produce a second search by text field?
The text field is under the Seach Panel is inside the header section of the SearchPage.qml, and the text field is the Controls.CustomTextField
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.