<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding a filter in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857923#M2960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erwin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much--this was so helpful and exactly what I was looking for! I do have an additional question. As you mentioned above, I need to modify the gridListModel in order to make the filter work. I think I need to use the FeatureQueryResult Class, since I would like the map to display any features where the beaches column = YES when the filter is selected. Does this sound right? Would it be possible to point me to any examples?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Erinn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2018 13:24:01 GMT</pubDate>
    <dc:creator>ErinnHasselgren</dc:creator>
    <dc:date>2018-11-19T13:24:01Z</dc:date>
    <item>
      <title>Adding a filter</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857919#M2956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to add filter functionality (to limit a layer based on a particular attribute) to the MapViewer template? I found a few things in the Qt documentation, but I'm pretty new to development and was wondering if you have any suggestions or recommendations for how to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 03:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857919#M2956</guid>
      <dc:creator>ErinnHasselgren</dc:creator>
      <dc:date>2018-10-11T03:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a filter</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857920#M2957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Errin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you be little more specific on where do you want to add the filter functionality? Screenshots would be helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then hopefully&amp;nbsp;we could point you to the specific qml file and component that you need to add the code to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 17:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857920#M2957</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-10-11T17:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a filter</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857921#M2958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erwin!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to I'm actually not too picky about where this appears in the app--whatever the easiest option is. I was considering was adding the two filter options to the hamburger button on the top left. In this case, the two filters would appear under the About the App selection. I also thought about adding a button along the top bar that would open a drop down menu with the two filter options, but I think this might be beyond my skill level. Again, I don't feel strongly about where this appears, I'm mostly looking for the easiest and most logical place to add this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference, there are two columns in the the attribute table of my data that I would like to be able to filter on. Both are populated with only YES or NO. I'm hoping to create one option for beaches, where the map only displays sites where there's a YES in the beaches column. The other filter will be boat ramps, with the same logic applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also considered using the gallery in order to accomplish showing all three variations (all sites, beaches, and boat ramps), but we don't think that will be as user friendly for our end-users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Erinn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Filter placement 1" class="image-1 jive-image" height="333" src="/legacyfs/online/424237_filter placement1.png" width="262" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Filter placement 2" class="image-2 jive-image" height="216" src="/legacyfs/online/424238_filter placement2.png" width="312" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Attribute table columns for filter" class="image-3 jive-image" height="188" src="/legacyfs/online/424239_attribute colums for filter.JPG" width="239" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 00:43:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857921#M2958</guid>
      <dc:creator>ErinnHasselgren</dc:creator>
      <dc:date>2018-10-12T00:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a filter</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857922#M2959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erinn,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see, now I understand a little bit more about what you are looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a different&amp;nbsp;idea, that I think might be better and more make-sense. Are you using the "Graticules" panel? If you are not using the Graticules panel, we can re-purpose the panel to this, you can change the&amp;nbsp;wording "Graticules" to Filter, and then the option in the Graticules panel from "None", "Lat/Long Grid", etc to "Beaches", "Boat Ramps", etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then when the user picks "Beaches", it would perform the filter instead of adding the Grid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="424296" alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/424296_Screen Shot 2018-10-12 at 2.35.22 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="424297" alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/424297_Screen Shot 2018-10-12 at 2.35.03 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content of Graticules panel can be found in MapViewer/views/GraticulesView.qml, the list of Grid can be modified in the model "mapView.gridListModel", and then the functionality that you need to change from assigning grid to mapView to do the custom filter would be at MapPage.qml&amp;nbsp;around line ~2060&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;grid &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;currentItem&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gridObject&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;labelPosition&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GridLabelPositionAllSides&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
‍&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is helpful,&lt;/P&gt;&lt;P&gt;Erwin.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857922#M2959</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2021-12-12T10:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a filter</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857923#M2960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erwin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much--this was so helpful and exactly what I was looking for! I do have an additional question. As you mentioned above, I need to modify the gridListModel in order to make the filter work. I think I need to use the FeatureQueryResult Class, since I would like the map to display any features where the beaches column = YES when the filter is selected. Does this sound right? Would it be possible to point me to any examples?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Erinn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 13:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-a-filter/m-p/857923#M2960</guid>
      <dc:creator>ErinnHasselgren</dc:creator>
      <dc:date>2018-11-19T13:24:01Z</dc:date>
    </item>
  </channel>
</rss>

