<?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: Find/Query Feature Layer with an array of values in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-query-feature-layer-with-an-array-of-values/m-p/246183#M22812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a solution so I wanted to update my post: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the QueryTask function and passing a query string with the IDs that I want into the query.where parameter. So my REST service call looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A amp="amp" d="D" href="http://myserver/ArcGIS/rest/services/GISAPP_MOSAICSPERMITS/ActivePermitsQuery/FeatureServer/1/query?f=json&amp;amp;where=PermitNumber%3D" m362001="M362001" m362002="M362002" or="OR" permitnumber="PermitNumber" returngeometry="true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=2263'"&gt;http://myserver/ArcGIS/rest/services/GISAPP_MOSAICSPERMITS/ActivePermitsQuery/FeatureServer/1/query?f=json&amp;amp;where=PermitNumber%3D'M362001'%20OR%20PermitNumber%3D'M362002'&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=2263&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Initially my map service was returning the JSON without any geometry. If I check the 'Feature Access' capability in ArcGIS Server Manager and use the /FeatureServer/ URL, then the JSON includes the geometry and my application is working. Is it necessary/recommended to use the Feature Access in order to return geometry in the JSON (this is probably a separate forum post)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2012 15:34:08 GMT</pubDate>
    <dc:creator>ChadWilcomb</dc:creator>
    <dc:date>2012-01-05T15:34:08Z</dc:date>
    <item>
      <title>Find/Query Feature Layer with an array of values</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-query-feature-layer-with-an-array-of-values/m-p/246182#M22811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I currently have a simple example working where I can enter a string into a text box and return the features where that string matches a field from an ArcGIS REST service using the FindTask function. It works great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want to be able to query my REST service with an array of strings and show the features in the map that match the string for a certain field. What is the best way to go about this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 20:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-query-feature-layer-with-an-array-of-values/m-p/246182#M22811</guid>
      <dc:creator>ChadWilcomb</dc:creator>
      <dc:date>2012-01-03T20:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find/Query Feature Layer with an array of values</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-query-feature-layer-with-an-array-of-values/m-p/246183#M22812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a solution so I wanted to update my post: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the QueryTask function and passing a query string with the IDs that I want into the query.where parameter. So my REST service call looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A amp="amp" d="D" href="http://myserver/ArcGIS/rest/services/GISAPP_MOSAICSPERMITS/ActivePermitsQuery/FeatureServer/1/query?f=json&amp;amp;where=PermitNumber%3D" m362001="M362001" m362002="M362002" or="OR" permitnumber="PermitNumber" returngeometry="true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=2263'"&gt;http://myserver/ArcGIS/rest/services/GISAPP_MOSAICSPERMITS/ActivePermitsQuery/FeatureServer/1/query?f=json&amp;amp;where=PermitNumber%3D'M362001'%20OR%20PermitNumber%3D'M362002'&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=2263&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Initially my map service was returning the JSON without any geometry. If I check the 'Feature Access' capability in ArcGIS Server Manager and use the /FeatureServer/ URL, then the JSON includes the geometry and my application is working. Is it necessary/recommended to use the Feature Access in order to return geometry in the JSON (this is probably a separate forum post)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 15:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-query-feature-layer-with-an-array-of-values/m-p/246183#M22812</guid>
      <dc:creator>ChadWilcomb</dc:creator>
      <dc:date>2012-01-05T15:34:08Z</dc:date>
    </item>
  </channel>
</rss>

