<?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 feature layer distinct attribute values for creation of pick list? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/query-feature-layer-distinct-attribute-values-for/m-p/703049#M8871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can easily do this in a web browser by accessing the web interface to Query for that feature layer and specifying the OutField AND specifying DISTINCT as shown in this attachment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/419099_Screen Shot 2018-08-20 at 10.50.25 AM.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2018 16:52:00 GMT</pubDate>
    <dc:creator>ShawnCastrianni</dc:creator>
    <dc:date>2018-08-20T16:52:00Z</dc:date>
    <item>
      <title>Query feature layer distinct attribute values for creation of pick list?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-feature-layer-distinct-attribute-values-for/m-p/703048#M8870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build a pick list to show in my UI to allow the user to select a value from the pick list to control the DefinitionExpression of the feature layer in the map.&amp;nbsp; In a regular SQL DB, I would do a select distinct field_name from table order by field_name to build this pick list.&amp;nbsp; I need to do the same thing for a feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that I can QueryFeatures on a ServiceFeatureTable, and then inspect the returned features to build my pick list.&amp;nbsp; But this is VERY INEFFICIENT.&amp;nbsp; To improve efficiency, I have specified NOT to return the geometry since that is not required to build the pick list.&amp;nbsp; But even then, it is VERY INEFFICIENT since it is returning ALL the attributes for ALL the features. I ONLY need the DISTINCT attribute values, not the actual features themselves.&amp;nbsp; It would be helpful if I could at least specify the OutFields so that I can request ONLY the attribute I need to build my pick list.&amp;nbsp; But even this would not be ideal since I want DISTINCT values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 16:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-feature-layer-distinct-attribute-values-for/m-p/703048#M8870</guid>
      <dc:creator>ShawnCastrianni</dc:creator>
      <dc:date>2018-08-20T16:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query feature layer distinct attribute values for creation of pick list?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-feature-layer-distinct-attribute-values-for/m-p/703049#M8871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can easily do this in a web browser by accessing the web interface to Query for that feature layer and specifying the OutField AND specifying DISTINCT as shown in this attachment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/419099_Screen Shot 2018-08-20 at 10.50.25 AM.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 16:52:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-feature-layer-distinct-attribute-values-for/m-p/703049#M8871</guid>
      <dc:creator>ShawnCastrianni</dc:creator>
      <dc:date>2018-08-20T16:52:00Z</dc:date>
    </item>
  </channel>
</rss>

