<?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: Query failing for next 50 records in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335536#M8044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;But first thing how to know the OBJECTID?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/QueryTask.html#executeForIds()"&gt;QueryTask.executeForIds()&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From ArcGIS server &lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/query.html"&gt;REST help&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;returnIdsOnly:&lt;BR /&gt;Description: If true, the response only includes an array of object IDs. Otherwise the response is a feature set. The default is false.&lt;BR /&gt;Note that while there is a limit on the number of features included in the feature set response, &lt;STRONG&gt;there is no limit on the number of object IDs returned in the ID array response&lt;/STRONG&gt;. Clients can exploit this to get all the query conforming object IDs by specifying returnIdsOnly=true and subsequently requesting feature sets for subsets of object IDs. &lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 05:30:55 GMT</pubDate>
    <dc:creator>IvanBespalov</dc:creator>
    <dc:date>2012-09-10T05:30:55Z</dc:date>
    <item>
      <title>Query failing for next 50 records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335533#M8041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am querying the rest using query.where= "rownum &amp;gt;= 1 and rownum &amp;lt;= 50"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It???s giving me first 50 OBJECTID's but if I do query.where= "rownum &amp;gt;= 51 and rownum &amp;lt;= 100"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It???s giving me 0 records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This way I am doing pagination because I have more than 3 million records for some layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if I do query.where="1 = 1". The app is freezing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Naveen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 18:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335533#M8041</guid>
      <dc:creator>NaveenKatta</dc:creator>
      <dc:date>2012-09-06T18:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Query failing for next 50 records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335534#M8042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is good explanation why it happens - &lt;/SPAN&gt;&lt;A href="http://www.oratable.com/rownum/"&gt;http://www.oratable.com/rownum/&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...ROWNUM is a pseudocolumn that assigns a number to every row returned by a SQL query. It can be of great use in filtering data based on the number of rows returned by the query.&lt;BR /&gt;&lt;BR /&gt;ROWNUM gets its value as the query is executed, not before, and gets incremented only after the query passes the WHERE clause. Therefore, your WHERE condition can filter data based on "rownum &amp;lt; 2/3/4/." but not "rownum &amp;gt; 2/3/4.". The second filter will invariably return no rows selected.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. from api reference &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Query -&amp;gt; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/supportClasses/Query.html#where"&gt;where&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...&lt;BR /&gt;Other examples: query.where = "OBJECTID BETWEEN 1 AND 10"&lt;BR /&gt;...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0/query?where=objectid%20BETWEEN%201%20AND%2010&amp;amp;returnIdsOnly=true"&gt;works&lt;/A&gt;&lt;SPAN&gt; perfectly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 06:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335534#M8042</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-09-07T06:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query failing for next 50 records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335535#M8043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply. If we know the OBJECTID ('OBJECTID BETWEEN 1 AND 10')will works as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But first thing how to know the OBJECTID?? I am querying to know the OBJECTID like first 50 and after 2nd set of 50......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Naveen(NY State)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2012 20:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335535#M8043</guid>
      <dc:creator>NaveenKatta</dc:creator>
      <dc:date>2012-09-08T20:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Query failing for next 50 records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335536#M8044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;But first thing how to know the OBJECTID?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/QueryTask.html#executeForIds()"&gt;QueryTask.executeForIds()&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From ArcGIS server &lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/query.html"&gt;REST help&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;returnIdsOnly:&lt;BR /&gt;Description: If true, the response only includes an array of object IDs. Otherwise the response is a feature set. The default is false.&lt;BR /&gt;Note that while there is a limit on the number of features included in the feature set response, &lt;STRONG&gt;there is no limit on the number of object IDs returned in the ID array response&lt;/STRONG&gt;. Clients can exploit this to get all the query conforming object IDs by specifying returnIdsOnly=true and subsequently requesting feature sets for subsets of object IDs. &lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 05:30:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335536#M8044</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-09-10T05:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query failing for next 50 records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335537#M8045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This sample may help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Paging_through_results/01nq00000060000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Paging_through_results/01nq00000060000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 21:21:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-failing-for-next-50-records/m-p/335537#M8045</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-09-10T21:21:18Z</dc:date>
    </item>
  </channel>
</rss>

