<?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: ArcGIS Server's Query - Returned w/ different records in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604685#M56630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Run the code sourced from ESRI&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 17:31:48 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-11-24T17:31:48Z</dc:date>
    <item>
      <title>ArcGIS Server's Query - Returned w/ different records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604684#M56629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I tried 2 things: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1)&amp;nbsp; Run the code sourced from ESRI (see attached).&amp;nbsp; The query returned &amp;gt; 100 features and populated on the left pane's Grid. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2)&amp;nbsp; Go to the service site: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://trainingcloud.arcgis.com/arcgis/rest/services/Redlands_PointsOfInterest/MapServer/0" rel="nofollow" target="_blank"&gt;http://trainingcloud.arcgis.com/arcgis/rest/services/Redlands_PointsOfInterest/MapServer/0&lt;/A&gt;&lt;SPAN&gt;, and run the query:&amp;nbsp;&amp;nbsp; where:&amp;nbsp; NAME Like '%Redlands%'&amp;nbsp;&amp;nbsp; Geometry Type:&amp;nbsp; Envelope&amp;nbsp;&amp;nbsp; Out fields:&amp;nbsp; OBJECTID, NAME, Match_addr, TEL, TYPE&amp;nbsp;&amp;nbsp; Spatialo relationship: Contains Or use the link&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://trainingcloud.arcgis.com/arcgis/rest/services/Redlands_PointsOfInterest/MapServer/0/query?where=NAME+Like+%27%25Redlands%25%27&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelContains&amp;amp;relationParam=&amp;amp;outFields=OBJECTID%2C+NAME%2C+Match_addr%2C+TEL%2C+TYPE&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;f=html" rel="nofollow" target="_blank"&gt;http://trainingcloud.arcgis.com/arcgis/rest/services/Redlands_PointsOfInterest/MapServer/0/query?where=NAME+Like+%27%25Redlands%25%27&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelContains&amp;amp;relationParam=&amp;amp;outFields=OBJECTID%2C+NAME%2C+Match_addr%2C+TEL%2C+TYPE&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;f=html&lt;/A&gt;&lt;SPAN&gt; which results in only 12 records. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tried several times with the same results on both cases.&amp;nbsp; Can someone explain why?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="width: 100%; height: 90%; margin: 0;"&gt;&lt;DIV&gt;&lt;H1&gt;My Template&lt;/H1&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE style="width: 100%; height: 100%;"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TH&gt;Name&lt;/TH&gt;&lt;TH width="100%"&gt;Address&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV title="Custom Tools"&gt;&lt;INPUT size="15" type="text" value="" /&gt; &lt;BUTTON onclick=""&gt;Find Features&lt;/BUTTON&gt;&lt;/DIV&gt;&lt;DIV title="Switch Basemap"&gt;&lt;DIV style="overflow: scroll;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="overflow: hidden;"&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;CENTER&gt;Created by J. Doe&lt;/CENTER&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604684#M56629</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2014-11-24T17:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server's Query - Returned w/ different records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604685#M56630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Run the code sourced from ESRI&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604685#M56630</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-24T17:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server's Query - Returned w/ different records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604686#M56631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you see the attached file?  Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 18:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604686#M56631</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2014-11-24T18:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server's Query - Returned w/ different records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604687#M56632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; no it was not attached when I replied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is initially when you run the code the results contain all features that intersect the maps view extent and when you run your query you are only looking for features that have 'Redlands' in its name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your confusion is that you are seeing 'Redlands' in the in the Match_addr of the initial 100+ results and are expecting to see the same when you query.&amp;nbsp; If you change your query to&amp;nbsp; this then you will see results similar to what you are when you initially run the app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://trainingcloud.arcgis.com/arcgis/rest/services/Redlands_PointsOfInterest/MapServer/0/query?where=Match_addr+Like+%27%25Redlands%25%27&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelContains&amp;amp;relationParam=&amp;amp;outFields=OBJECTID%2C+NAME%2C+Match_addr%2C+TEL%2C+TYPE%2C+Match_addr&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;f=html" title="http://trainingcloud.arcgis.com/arcgis/rest/services/Redlands_PointsOfInterest/MapServer/0/query?where=Match_addr+Like+%27%25Redlands%25%27&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelContains&amp;amp;relationParam=&amp;amp;outFields=OBJECTID%2C+NAME%2C+Match_addr%2C+TEL%2C+TYPE%2C+Match_addr&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;f=html"&gt;http://trainingcloud.arcgis.com/arcgis/rest/services/Redlands_PointsOfInterest/MapServer/0/query?where=Match_addr+Like+%27%25Redlands%25%27&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelContains&amp;amp;relationParam=&amp;amp;outFields=OBJECTID%2C+NAME%2C+Match_addr%2C+TEL%2C+TYPE%2C+Match_addr&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;f=html&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 18:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604687#M56632</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-24T18:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server's Query - Returned w/ different records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604688#M56633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob:&amp;nbsp; Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 19:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-s-query-returned-w-different-records/m-p/604688#M56633</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2014-11-24T19:52:30Z</dc:date>
    </item>
  </channel>
</rss>

