<?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: How can an attribute's domain description be accessed in an Arcade expression? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365117#M16023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iif(st=="Existing", DomainName($feature, "material")," ")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should return "Asbestos Cement"&amp;nbsp; for what you described.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2019 23:13:55 GMT</pubDate>
    <dc:creator>MarkBockenhauer</dc:creator>
    <dc:date>2019-03-18T23:13:55Z</dc:date>
    <item>
      <title>How can an attribute's domain description be accessed in an Arcade expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365113#M16019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcPro, I'm using a custom Arcade expression in a Popup. The problem is that one of the attributes I need&amp;nbsp;in the expression uses a&amp;nbsp;domain and the popup displays the domain attribute &lt;STRONG&gt;code&lt;/STRONG&gt;, when what I want displayed is the domain attribute &lt;STRONG&gt;description&lt;/STRONG&gt;. When using such an attribute directly in a popup (i.e. without using an expression), by default it's the description that displays, so it seems surprising to me that with the Arcade expression, the default is to display the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I write the Arcade expression in a way that it displays the attribute description?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 19:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365113#M16019</guid>
      <dc:creator>AngelaDeegan</dc:creator>
      <dc:date>2019-03-18T19:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can an attribute's domain description be accessed in an Arcade expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365114#M16020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#domainname"&gt;DomainName&lt;/A&gt; function to return the description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DomainName($feature, &lt;EM&gt;theField&lt;/EM&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 19:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365114#M16020</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-03-18T19:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can an attribute's domain description be accessed in an Arcade expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365115#M16021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ken. I was using the attribute in a Concatenate function and I've since realized that when not used inside a Concatenate function, the attribute appears to display the Description and not the code. So I'm think I'm good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 20:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365115#M16021</guid>
      <dc:creator>AngelaDeegan</dc:creator>
      <dc:date>2019-03-18T20:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can an attribute's domain description be accessed in an Arcade expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365116#M16022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Actually, it's still not working for me (mistakenly thought it was for a minute there). And I think what you're referring to is something different (the description of the domain itself). I'm trying to get the description for a code to display. My arcade popup expression is as follows. The material field uses a coded domain. So for instance, code "AC" has a description of "Asbestos Cement" and that's what I want displayed, but it's displaying "AC".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;Var&lt;/SPAN&gt; st &lt;SPAN style="color: #808080;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.status&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #9bbb59;"&gt;IIf&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(&lt;/SPAN&gt;st&lt;SPAN style="color: #808080;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;"Existing"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.diameter &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;'" '&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.material &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;" - Project "&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.project &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;'('&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #9bbb59;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.date_activated&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;')'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #9bbb59;"&gt;IIF&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(&lt;/SPAN&gt;st&lt;SPAN style="color: #808080;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;"Proposed"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.status &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;" "&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.diameter &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;'" '&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.material &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;" - Project "&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.project &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;'('&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #9bbb59;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.date_activated&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;')'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.status &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;" "&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.diameter &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;'" '&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.material &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;" - by Project "&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.abandonment_prj &lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 21:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365116#M16022</guid>
      <dc:creator>AngelaDeegan</dc:creator>
      <dc:date>2019-03-18T21:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can an attribute's domain description be accessed in an Arcade expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365117#M16023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iif(st=="Existing", DomainName($feature, "material")," ")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should return "Asbestos Cement"&amp;nbsp; for what you described.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 23:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365117#M16023</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2019-03-18T23:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can an attribute's domain description be accessed in an Arcade expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365118#M16024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 18:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/365118#M16024</guid>
      <dc:creator>AngelaDeegan</dc:creator>
      <dc:date>2019-03-19T18:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can an attribute's domain description be accessed in an Arcade expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/1248568#M64280</link>
      <description>&lt;P&gt;What if you have a related table with coded domain values and you want to display its domain descriptions in a pop-up? I was not able to make the &lt;EM&gt;DomainName($feature,&amp;nbsp;theField&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;)&lt;/EM&gt; expression/function work in this case.&amp;nbsp;&lt;/SPAN&gt;Does the $feature part of the expression/function need to change in some way?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 00:43:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/m-p/1248568#M64280</guid>
      <dc:creator>KelseySmuczynski</dc:creator>
      <dc:date>2023-01-17T00:43:57Z</dc:date>
    </item>
  </channel>
</rss>

