<?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: Get Unique in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501569#M12845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The REST API accepts the following parameters &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/query.html"&gt;http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/query.html&lt;/A&gt;&lt;SPAN&gt; therefore "select distinct" is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to do this through maybe a LINQ query once you have the results back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do something like the following in the Query_ExecuteCompleted event handler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var graphics = (from g in e.FeatureSet.Features&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; select g).Distinct();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CODE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Dec 2010 16:19:07 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2010-12-07T16:19:07Z</dc:date>
    <item>
      <title>Get Unique</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501567#M12843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the query task, is there a way to ask for a list of unique values like you can do in ArcMap's query builder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 11:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501567#M12843</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-07T11:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Unique</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501568#M12844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unless there is a better way, I am currently looping through the results to find the unique values.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 15:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501568#M12844</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-07T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Unique</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501569#M12845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The REST API accepts the following parameters &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/query.html"&gt;http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/query.html&lt;/A&gt;&lt;SPAN&gt; therefore "select distinct" is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to do this through maybe a LINQ query once you have the results back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do something like the following in the Query_ExecuteCompleted event handler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var graphics = (from g in e.FeatureSet.Features&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; select g).Distinct();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CODE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 16:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501569#M12845</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-07T16:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Unique</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501570#M12846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jennifer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 16:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-unique/m-p/501570#M12846</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-07T16:28:31Z</dc:date>
    </item>
  </channel>
</rss>

