<?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: when do I use a filter?  In the MXD with a definition query or in the Web Map? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474348#M12536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Rachel. very helpful to have all of the options laid out. i ended up using&amp;nbsp;&lt;STRONG&gt;Filter the data in a web map&lt;/STRONG&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Feb 2018 13:42:30 GMT</pubDate>
    <dc:creator>StewartGalloway</dc:creator>
    <dc:date>2018-02-05T13:42:30Z</dc:date>
    <item>
      <title>when do I use a filter?  In the MXD with a definition query or in the Web Map?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474346#M12534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am running ArcGIS Server and Portal.&amp;nbsp; I used Web App Builder to create a Web Map&amp;nbsp; and a Web Map App.&amp;nbsp; I now want to filter one of the Feature Classes.&amp;nbsp; Where do I do this,&amp;nbsp;in the MXD with a definition query or in the Web Map?&lt;/DIV&gt;&lt;DIV&gt;thanks.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474346#M12534</guid>
      <dc:creator>StewartGalloway</dc:creator>
      <dc:date>2018-02-02T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: when do I use a filter?  In the MXD with a definition query or in the Web Map?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474347#M12535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stewart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming I am understanding your workflow correctly, there are several points at which you could filter your data for a smaller subset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I'd like to confirm I understand your workflow. Let me know if any of this is incorrect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You started with data in ArcGIS for Desktop&lt;/P&gt;&lt;P&gt;- You published your content from ArcGIS for Desktop to Portal for ArcGIS&lt;/P&gt;&lt;P&gt;- You then used Portal for ArcGIS to create a web map&lt;/P&gt;&lt;P&gt;- You then created a Web AppBuilder Application from the web map in Portal for ArcGIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming these steps are correct, you have the following options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create a new feature class before publishing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- You can create a subset of data by first applying a Definition Query in ArcMap, and then exporting the data from the feature layer into a new feature class. You can then publish the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See:&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/displaying-a-subset-of-features-in-a-layer.htm"&gt;Displaying a subset of features in a layer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Publish with a Definition Query&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- You can publish to Portal for ArcGIS with a Definition Query - the definition query should be honored in selecting what data is uploaded to Portal for ArcGIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create a view with a filter applied&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- You can create a new view of a feature service which essentially becomes a subset of the data. This can be done from the Item Details page in Portal for ArcGIS under Visualization.&lt;/P&gt;&lt;P&gt;- Note that views are a relatively new functionality so depending on what version of Portal for ArcGIS you're using, this may not be an option yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See:&amp;nbsp;&lt;A href="http://enterprise.arcgis.com/en/portal/latest/use/create-hosted-views.htm"&gt;Create hosted feature layer views&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Filter the data in a web map&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- You can apply a filter to the data in a web map to hide some of the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See: &lt;A href="https://enterprise.arcgis.com/en/portal/latest/use/apply-filters.htm"&gt;Apply filters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Apply a filter in the application&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- You can use widgets to apply a filter to your data. For example, you can use the Filter widget or Group Filter widget in the Web AppBuilder application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-filter.htm"&gt;Filter widget&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-group-filter.htm"&gt;Group filter widget&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Apply a filter prior to analysis or export&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- You could use the Query widget to select only a subset of the data in a Web AppBuilder application prior to using any analysis or exporting the content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-query.htm"&gt;Query widget&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, it depends on whether you want all the data to be hosted in ArcGIS Online, whether you want an adjustable filter for your users to hide or unhide content, or if you want a filter only for exporting certain data from a Web AppBuilder application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that answers your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Rachel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 20:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474347#M12535</guid>
      <dc:creator>rachelg_esri</dc:creator>
      <dc:date>2018-02-02T20:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: when do I use a filter?  In the MXD with a definition query or in the Web Map?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474348#M12536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Rachel. very helpful to have all of the options laid out. i ended up using&amp;nbsp;&lt;STRONG&gt;Filter the data in a web map&lt;/STRONG&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 13:42:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474348#M12536</guid>
      <dc:creator>StewartGalloway</dc:creator>
      <dc:date>2018-02-05T13:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: when do I use a filter?  In the MXD with a definition query or in the Web Map?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474349#M12537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Are any of these options better than the other in terms of map service performance?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2019 14:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474349#M12537</guid>
      <dc:creator>JKGIS08</dc:creator>
      <dc:date>2019-10-23T14:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: when do I use a filter?  In the MXD with a definition query or in the Web Map?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474350#M12538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Are any of these options better than the other in terms of map service performance?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Nope. As we know, it is always recommended to have indices on the fields used in definition query. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a side note: when you set a def query on a layer in the mxd or aprx, and publish a map service (aka map image layer), that def query is burned in the map with the layer. And you won't be able to overwrite/replace it from any web application. Overwriting/ replacing will require republishing. There are many cases, this is desirable. Other cases, it makes sense to publish without def query, and set def query/filter from the web app/map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2019 16:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/when-do-i-use-a-filter-in-the-mxd-with-a/m-p/474350#M12538</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2019-10-23T16:09:53Z</dc:date>
    </item>
  </channel>
</rss>

