<?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: IdentifyTask get Coded Domain Values NOT Description in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52956#M4673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kathleen,&lt;/P&gt;&lt;P&gt;Check out my at at: &lt;A href="https://github.com/csergent45/streetSigns" title="https://github.com/csergent45/streetSigns"&gt;csergent45/streetSigns · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I dropdown list boxes in that application with domain values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2015 02:54:13 GMT</pubDate>
    <dc:creator>ChrisSergent</dc:creator>
    <dc:date>2015-07-17T02:54:13Z</dc:date>
    <item>
      <title>IdentifyTask get Coded Domain Values NOT Description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52952#M4669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use the Identify Task on a layer with a coded domain, it returns the coded domain description and not the value.&lt;/P&gt;&lt;P&gt;How can I receive the coded value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;In our zoning layer... if zoning of &lt;STRONG&gt;SF1&lt;/STRONG&gt; is identified, the callback returns &lt;STRONG&gt;Single Family District&lt;/STRONG&gt;... but I want the actual code&lt;STRONG&gt; SF1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have unchecked all the following boxes in the map document that specify to display the description.&lt;/P&gt;&lt;P&gt;Layer Properties Display Expression&lt;/P&gt;&lt;P&gt;Layer Properties Label Expression&lt;/P&gt;&lt;P&gt;Layer Properties HTML Popup&lt;/P&gt;&lt;P&gt;Layer Attribute Table Appearance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the JavaScript API is still returning the description. Similarly, when I identify in the map document, I receive &lt;STRONG&gt;Single Family District&lt;/STRONG&gt; and not &lt;STRONG&gt;SF1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing a setting someplace? or is there a setting in the identify parameters that I am overlooking?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 16:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52952#M4669</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2015-07-14T16:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask get Coded Domain Values NOT Description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52953#M4670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried ArcMap Options Tables. Still no luck getting the coded value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 16:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52953#M4670</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2015-07-14T16:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask get Coded Domain Values NOT Description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52954#M4671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was never able to figure out how to receive the coded domain value using the Identify Task.&lt;/P&gt;&lt;P&gt;But I found a little work around (hack) to get to the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the Identify Task on the item that gets selected.&lt;/P&gt;&lt;P&gt;I grab the OBJECTID returned from that task and then run a Query Task on the OBJECTID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Query Task will return the coded domain value instead of the description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;identifyTask.execute(identifyParams, identifyResults);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function identifyResults(results) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ObjectID = idResults[0].feature.attributes.OBJECTID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = "OBJECTID = " + ObjectID;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query, queryResults);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not the best solution, but it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 17:25:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52954#M4671</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2015-07-16T17:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask get Coded Domain Values NOT Description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52955#M4672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you able to get the coded value from the queryResults? Is it the same field you tried referencing in the identifyResults?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 23:18:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52955#M4672</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2015-07-16T23:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask get Coded Domain Values NOT Description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52956#M4673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kathleen,&lt;/P&gt;&lt;P&gt;Check out my at at: &lt;A href="https://github.com/csergent45/streetSigns" title="https://github.com/csergent45/streetSigns"&gt;csergent45/streetSigns · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I dropdown list boxes in that application with domain values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 02:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52956#M4673</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-07-17T02:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask get Coded Domain Values NOT Description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52957#M4674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/105703"&gt;Kristian Ekenes&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. I am referencing the same field in the Query Task that I tried to reference in the Identify Task.&lt;/P&gt;&lt;P&gt;The syntax is a little different though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Identify Task...&lt;/P&gt;&lt;P&gt;value= results[0].feature.attributes.FieldName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Query Task...&lt;/P&gt;&lt;P&gt;value= results.features[0].attributes.FieldName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if it makes a difference or not... but I am still referencing the JS API version 3.6. I hope the functionality hasn't changed in the latest release. (which is currently at 3.14).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I am going to note:&lt;/P&gt;&lt;P&gt;There are several places in the map document where I have selected to NOT display the coded value description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not done enough testing to know if any of these settings make a difference or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the Layer Properties:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Display &amp;gt; Expression &amp;gt; Uncheck "Display coded value description"&lt;/P&gt;&lt;P&gt;Labels &amp;gt; Expression &amp;gt; Uncheck "Display coded value description"&lt;/P&gt;&lt;P&gt;HTML Popup &amp;gt; Uncheck "Display coded value descriptions in all HTML content"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the Attribute Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Table Options &amp;gt; Appearance &amp;gt; Uncheck "Display coded value domain and subtype descriptions"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In ArcMap Options:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Customize &amp;gt; ArcMap Options &amp;gt; Uncheck "Display coded value domain and subtype descriptions"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:55:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52957#M4674</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2015-07-17T14:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask get Coded Domain Values NOT Description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52958#M4675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/5237"&gt;Chris Sergent&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you are using the Query Task in that application.&lt;/P&gt;&lt;P&gt;Which is exactly what I used as the work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Identify Task does not seem to honor the coded domain values. Only the coded domain descriptions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52958#M4675</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2015-07-17T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask get Coded Domain Values NOT Description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52959#M4676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has been a couple years since I created this post.&lt;/P&gt;&lt;P&gt;But I wanted to provide an update for other people who may still run across this looking for a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Included&amp;nbsp;at version 3.22 there is now an Identify Parameter that you can set to get the domain value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;identifyParams.returnUnformattedValues = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 17:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-get-coded-domain-values-not/m-p/52959#M4676</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2017-10-13T17:58:09Z</dc:date>
    </item>
  </channel>
</rss>

