<?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 How do I query a feature service to display only a subset of records? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-query-a-feature-service-to-display-only-a/m-p/453952#M41951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working to develop a javascript/html application and would like to understand how to subset features displayed from a feature service defined by an sql query. Can anyone help with resources to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, we would like a user input to define a where clause that then displays a map window with only the features that satisfy that where clause. Any examples of how to set up a where clause client side would be helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Dec 2015 17:05:27 GMT</pubDate>
    <dc:creator>deleted-user-x7XmeRtVHyGE</dc:creator>
    <dc:date>2015-12-04T17:05:27Z</dc:date>
    <item>
      <title>How do I query a feature service to display only a subset of records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-query-a-feature-service-to-display-only-a/m-p/453952#M41951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working to develop a javascript/html application and would like to understand how to subset features displayed from a feature service defined by an sql query. Can anyone help with resources to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, we would like a user input to define a where clause that then displays a map window with only the features that satisfy that where clause. Any examples of how to set up a where clause client side would be helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 17:05:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-query-a-feature-service-to-display-only-a/m-p/453952#M41951</guid>
      <dc:creator>deleted-user-x7XmeRtVHyGE</dc:creator>
      <dc:date>2015-12-04T17:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query a feature service to display only a subset of records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-query-a-feature-service-to-display-only-a/m-p/453953#M41952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Your desired end result would be a combination of a couple of the JS API Samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/query_nomap.html" title="https://developers.arcgis.com/javascript/jssamples/query_nomap.html"&gt;Query data without a map | ArcGIS API for JavaScript&lt;/A&gt; use this a starting point to learn how to use QueryTask to query a MapService based on user input.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/query_buffer.html" title="https://developers.arcgis.com/javascript/jssamples/query_buffer.html"&gt;Select with Feature Layer | ArcGIS API for JavaScript&lt;/A&gt; would be an example of how to work with those results on a map.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;There is not a sample that does exactly what you are looking for so your will have to grab necessary parts of both samples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 17:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-query-a-feature-service-to-display-only-a/m-p/453953#M41952</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-04T17:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query a feature service to display only a subset of records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-query-a-feature-service-to-display-only-a/m-p/453954#M41953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Thanks for the resources. Further digging had me come across the &lt;SPAN style="color: #000000; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"&gt;.setDefinitionExpression() method. That seems to be the solution that works best and easiest for what I'm trying. Thanks for putting down that path. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"&gt;Enjoy the day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 03:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-query-a-feature-service-to-display-only-a/m-p/453954#M41953</guid>
      <dc:creator>deleted-user-x7XmeRtVHyGE</dc:creator>
      <dc:date>2015-12-09T03:01:24Z</dc:date>
    </item>
  </channel>
</rss>

