<?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: trying to SELCET DISTINCT  with layer.queryFeatures(query); in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1129998#M75750</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/537653"&gt;@eyalj&lt;/a&gt;&amp;nbsp;- you can define the return distinct in the query object.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;query = new Query();
query.where = "condition";
query.returnDistinctValues = true);
layer.queryFeatures(query);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Please refer to the API&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnDistinctValues" target="_blank" rel="noopener"&gt;returnDistinctValues&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jan 2022 07:04:00 GMT</pubDate>
    <dc:creator>Kishore</dc:creator>
    <dc:date>2022-01-03T07:04:00Z</dc:date>
    <item>
      <title>trying to SELCET DISTINCT  with layer.queryFeatures(query);</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1129955#M75746</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to do SELECT DISTINCT or do something&amp;nbsp;equivalent with&amp;nbsp;layer.queryFeatures(query);&lt;/P&gt;&lt;P&gt;what should the values of&amp;nbsp;query should be?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 14:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1129955#M75746</guid>
      <dc:creator>eyalj</dc:creator>
      <dc:date>2022-01-02T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: trying to SELCET DISTINCT  with layer.queryFeatures(query);</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1129998#M75750</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/537653"&gt;@eyalj&lt;/a&gt;&amp;nbsp;- you can define the return distinct in the query object.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;query = new Query();
query.where = "condition";
query.returnDistinctValues = true);
layer.queryFeatures(query);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Please refer to the API&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnDistinctValues" target="_blank" rel="noopener"&gt;returnDistinctValues&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 07:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1129998#M75750</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2022-01-03T07:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: trying to SELCET DISTINCT  with layer.queryFeatures(query);</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1130004#M75751</link>
      <description>&lt;P&gt;When i change returnDistinctValues to true it says that suddenly i dont have any values,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eyalj_0-1641196170471.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30620i2A23B4B73A7065A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eyalj_0-1641196170471.png" alt="eyalj_0-1641196170471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 07:49:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1130004#M75751</guid>
      <dc:creator>eyalj</dc:creator>
      <dc:date>2022-01-03T07:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: trying to SELCET DISTINCT  with layer.queryFeatures(query);</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1130007#M75752</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/537653"&gt;@eyalj&lt;/a&gt;&amp;nbsp; - we have known limitations for this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For service-based queries, this parameter applies only if the&amp;nbsp;supportsAdvancedQueries&amp;nbsp;capability of the layer is&amp;nbsp;true.&lt;/LI&gt;&lt;LI&gt;Make sure to set&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnGeometry" target="_blank" rel="noopener"&gt;returnGeometry&lt;/A&gt;&amp;nbsp;to&amp;nbsp;false&amp;nbsp;when&amp;nbsp;returnDistinctValues&amp;nbsp;is true. Otherwise, reliable results will not be returned.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope you are comply with these limitations.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 08:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-selcet-distinct-with-layer-queryfeatures/m-p/1130007#M75752</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2022-01-03T08:02:15Z</dc:date>
    </item>
  </channel>
</rss>

