<?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: Overcoming QueryTask limit (get next 1000) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/overcoming-querytask-limit-get-next-1000/m-p/707007#M65805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if this will help you but I noticed in the following &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#FeatureLayer/queryIds" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#FeatureLayer/queryIds&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the FeatureLayer.queryIds method will allow you to query for ObjectIds and there is no limit on the number of ObjectIds that are returned from the server.&amp;nbsp; So the way I see it, it seems like you can get an array of all the OID that satisfy your query then you can process your array based on the number of records/oids returned. Once you have "parsed your array of OID into more "manageable" chunks then you can use the query.objectIds to get your selection graphics/features via either the query task or FeatureLayer.queryFeatures by passing in your "trimmed-down" version of the OIDs of interest. Loop through you list you get your data of interest. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I&amp;nbsp; hope that makes sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 21:00:47 GMT</pubDate>
    <dc:creator>DianaBenedict</dc:creator>
    <dc:date>2013-02-15T21:00:47Z</dc:date>
    <item>
      <title>Overcoming QueryTask limit (get next 1000)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/overcoming-querytask-limit-get-next-1000/m-p/707006#M65804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since there is a limit on the maximum number of records returned from a query, if there's more records that match the query than are returned, is there a way to query out the next batch of records?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, ArcGIS Server is set to return a maximum of 1000 records, but there's 8000 records that match a particular query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Is there a way I can send a query to get me records 1001-2000?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Can I cut it down to a much smaller selection? Say I only want the top 20, and later I want the next 20, and then the next 20? Is that possible? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to do it server side through SQL, but I didn't know if it's available through ArcGIS Rest services, or will be in the near future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 20:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/overcoming-querytask-limit-get-next-1000/m-p/707006#M65804</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2013-02-15T20:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Overcoming QueryTask limit (get next 1000)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/overcoming-querytask-limit-get-next-1000/m-p/707007#M65805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if this will help you but I noticed in the following &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#FeatureLayer/queryIds" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#FeatureLayer/queryIds&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the FeatureLayer.queryIds method will allow you to query for ObjectIds and there is no limit on the number of ObjectIds that are returned from the server.&amp;nbsp; So the way I see it, it seems like you can get an array of all the OID that satisfy your query then you can process your array based on the number of records/oids returned. Once you have "parsed your array of OID into more "manageable" chunks then you can use the query.objectIds to get your selection graphics/features via either the query task or FeatureLayer.queryFeatures by passing in your "trimmed-down" version of the OIDs of interest. Loop through you list you get your data of interest. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I&amp;nbsp; hope that makes sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 21:00:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/overcoming-querytask-limit-get-next-1000/m-p/707007#M65805</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2013-02-15T21:00:47Z</dc:date>
    </item>
  </channel>
</rss>

