<?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 to read the attribute table from a feature layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542039#M50471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to get hacky, you can use the 'returnDistinctValues' in the query as described here.&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/95739-Why-isn-t-quot-returnDistinctValues-quot-an-option-for-the-quot-Query-quot-object-in-the-JS-API"&gt;http://forums.arcgis.com/threads/95739-Why-isn-t-quot-returnDistinctValues-quot-an-option-for-the-quot-Query-quot-object-in-the-JS-API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will limit the result to distinct results. Works well when returning a single field from a request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 12:39:44 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2013-12-02T12:39:44Z</dc:date>
    <item>
      <title>How to read the attribute table from a feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542037#M50469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Greforb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I read the attribute table from a feature layer using javascript? Do I have to query the features and look in the graphics or can I avoid having to look in the graphics and just get a table with attributes? I want to create a drop down from unique values in one of the fields in the attribute table. I currently did this using FeatureLayer.queryFeatures, but apparently this only returns 1000 features. I tried to increase this number in my arcgisonline hosted feature service without any luck. When I look in my &lt;/SPAN&gt;&lt;A href="https://services1.arcgis.com/xxx/arcgis/admin"&gt;https://services1.arcgis.com/xxx/arcgis/admin&lt;/A&gt;&lt;SPAN&gt; under Services (as told elsewhere on this or another forum, can't remember) I am told that there are no services, hence I cannot increase the number of features return by querying! Also I guess that performance will be poor if I increase this value. So ideally I want to avoid querying and just retrieve the full attribute list without geometry attached to it. Then I can run through that and produce the list I need.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 10:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542037#M50469</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-29T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to read the attribute table from a feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542038#M50470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: stevel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I guess that performance will be poor if I increase this value. So ideally I want to avoid querying and just retrieve the full attribute list without geometry attached to it. Then I can run through that and produce the list I need.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is definitely a setting which allows you to increase the number - have a play around on the panel in ArcMap when you create the ArcGIS Server service definition. (I don't have ArcMap handy to do a test).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you're right that it will slow the performance down if you need to read through thousands of records when populating your dropdown. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, what about summarizing the values in ArcMap, then creating a table from the summarized version, and using this for the dropdown? With any luck you'll have fewer than 1000 unique values (if not, increase the number as above).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 07:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542038#M50470</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-12-02T07:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to read the attribute table from a feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542039#M50471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to get hacky, you can use the 'returnDistinctValues' in the query as described here.&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/95739-Why-isn-t-quot-returnDistinctValues-quot-an-option-for-the-quot-Query-quot-object-in-the-JS-API"&gt;http://forums.arcgis.com/threads/95739-Why-isn-t-quot-returnDistinctValues-quot-an-option-for-the-quot-Query-quot-object-in-the-JS-API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will limit the result to distinct results. Works well when returning a single field from a request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 12:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542039#M50471</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-12-02T12:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to read the attribute table from a feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542040#M50472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: stevel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;use the 'returnDistinctValues' in the query as described here.&lt;A href="http://forums.arcgis.com/threads/95739-Why-isn-t-quot-returnDistinctValues-quot-an-option-for-the-quot-Query-quot-object-in-the-JS-API"&gt;http://forums.arcgis.com/threads/95739-Why-isn-t-quot-returnDistinctValues-quot-an-option-for-the-quot-Query-quot-object-in-the-JS-API&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nice one - do that!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 19:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-the-attribute-table-from-a-feature/m-p/542040#M50472</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-12-02T19:10:42Z</dc:date>
    </item>
  </channel>
</rss>

