<?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 Select Query returns Coded value for domain not description/name  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-query-returns-coded-value-for-domain-not/m-p/8854#M830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a select query which return a feature with coded value in "selectFeature.attributes.feildName" for the domain, But we need the name/description NOT coded value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selectQuery.geometry = evt.mapPoint;&lt;BR /&gt; selectQuery.distance = 5;&lt;BR /&gt; selectQuery.units = "meters"&lt;BR /&gt; selectQuery.returnGeometry = true;&lt;BR /&gt; Parcels.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW, function (features) {&lt;BR /&gt; if (features.length &amp;gt; 0) {&lt;BR /&gt; updateFeature = features[0];&lt;BR /&gt; map.infoWindow.setTitle(features[0].getLayer().name);&lt;BR /&gt; map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; map.infoWindow.hide();&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i replace the coded domain value with the description in "updateFeature.attributes" in above code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2019 10:36:53 GMT</pubDate>
    <dc:creator>MuhammadFayaz</dc:creator>
    <dc:date>2019-01-23T10:36:53Z</dc:date>
    <item>
      <title>Select Query returns Coded value for domain not description/name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-query-returns-coded-value-for-domain-not/m-p/8854#M830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a select query which return a feature with coded value in "selectFeature.attributes.feildName" for the domain, But we need the name/description NOT coded value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selectQuery.geometry = evt.mapPoint;&lt;BR /&gt; selectQuery.distance = 5;&lt;BR /&gt; selectQuery.units = "meters"&lt;BR /&gt; selectQuery.returnGeometry = true;&lt;BR /&gt; Parcels.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW, function (features) {&lt;BR /&gt; if (features.length &amp;gt; 0) {&lt;BR /&gt; updateFeature = features[0];&lt;BR /&gt; map.infoWindow.setTitle(features[0].getLayer().name);&lt;BR /&gt; map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; map.infoWindow.hide();&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i replace the coded domain value with the description in "updateFeature.attributes" in above code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 10:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-query-returns-coded-value-for-domain-not/m-p/8854#M830</guid>
      <dc:creator>MuhammadFayaz</dc:creator>
      <dc:date>2019-01-23T10:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query returns Coded value for domain not description/name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-query-returns-coded-value-for-domain-not/m-p/8855#M831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muhammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You have to get the description using the fields domain.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fldDomain &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Parcels&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getDomain&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"fieldName"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; desc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fldDomain&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;selectFeature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fieldName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-query-returns-coded-value-for-domain-not/m-p/8855#M831</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T20:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query returns Coded value for domain not description/name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-query-returns-coded-value-for-domain-not/m-p/8856#M832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is working!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 06:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-query-returns-coded-value-for-domain-not/m-p/8856#M832</guid>
      <dc:creator>MuhammadFayaz</dc:creator>
      <dc:date>2019-01-24T06:08:26Z</dc:date>
    </item>
  </channel>
</rss>

