<?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: How do I get a count of all features in a layer/service? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543593#M12287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, this does require server 10 since it uses a new returnIdsOnly parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/query.html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/query.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 15:43:09 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2010-10-01T15:43:09Z</dc:date>
    <item>
      <title>How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543587#M12281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to query a service or service layer to simply get a count of the matching features?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I could go grab the lot and get it that way, but my service is limited to 500 results and there are way more features than that. I do not want to change this limit as there are other applications that utilize this service and I simply want the count value and don't care about the attribute data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So simply, is there a way to just do a SELECT COUNT(whatever) FROM [Service] or something if you get my meaning?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 09:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543587#M12281</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2010-09-30T09:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543588#M12282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the 2.1 API take at look at executeForIds method of the QueryTask.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 11:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543588#M12282</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-09-30T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543589#M12283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tony,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the 2.1 API take at look at executeForIds method of the QueryTask.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't get this to work at all. I always get a zero length array back, whereas if I switch to execute I get a nice featureSet back so the query must be right!?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't need Version 10 of server do I?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Robert.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 08:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543589#M12283</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2010-10-01T08:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543590#M12284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am pretty sure you do not need Server 10. Although just because execute is returning a featureset doe not mean that the feature set has any features in it. Can you check the length of the returned featureset?what does your query look like?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 10:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543590#M12284</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-10-01T10:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543591#M12285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tony,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am pretty sure you do not need Server 10. Although just because execute is returning a featureset doe not mean that the feature set has any features in it. Can you check the length of the returned featureset?what does your query look like?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureSet is fine, in this particular example it contains 53 objects so I figured a switch to the executeForIds method would return an Array of the same length!?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 11:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543591#M12285</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2010-10-01T11:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543592#M12286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I was able to duplicate your results when using a 9.3.1 Server so it Must only work with a 10 Server, although I don't see where the API documents this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 13:38:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543592#M12286</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-10-01T13:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543593#M12287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, this does require server 10 since it uses a new returnIdsOnly parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/query.html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/query.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 15:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543593#M12287</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-10-01T15:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543594#M12288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dasa,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You guys might want to put something in the documentation about the ArcGIS Server 10 requirement. I did not see anything about this in the documentation unless I overlooked it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 15:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543594#M12288</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-10-01T15:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of all features in a layer/service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543595#M12289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ahh thank you very much guys. At least that answers my question!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I Installed a test server on version 10 today and desktop too (to test this stuff) only to find Catalog &lt;/SPAN&gt;&lt;STRONG&gt;can't &lt;/STRONG&gt;&lt;SPAN&gt;manage a 9.3.1 server so I can't manage a version 10 and a 9.3.1 server from one machine!!! That is REALLY annoying/impossible for trying to migrate!!!! :mad:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 16:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-do-i-get-a-count-of-all-features-in-a-layer/m-p/543595#M12289</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2010-10-01T16:59:34Z</dc:date>
    </item>
  </channel>
</rss>

