<?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 do I concatenate fields and get results of what I see in the attribute table and not the coded values in the new field created ? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-concatenate-fields-and-get-results-of/m-p/1104017#M46243</link>
    <description>&lt;P&gt;Thanks, Uri&lt;/P&gt;&lt;P&gt;The problem I'm still having is how do I use multiple domains? If Field one has one domain ex: "EV_SRM_COVER_TYPE" and field two has a separate domain listed ex: "EV_SAF_COVER_TYPE" in GDB.&lt;/P&gt;&lt;P&gt;Field 1 =&amp;nbsp;!SRM_COVER_TYPE!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Field 2 =&amp;nbsp;!SAF_COVER_TYPE!&lt;/P&gt;&lt;P&gt;the result is still 000-111 after I concatenate but I need the descriptions instead of the code&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 17:19:26 GMT</pubDate>
    <dc:creator>markross</dc:creator>
    <dc:date>2021-10-01T17:19:26Z</dc:date>
    <item>
      <title>How do I concatenate fields and get results of what I see in the attribute table and not the coded values in the new field created ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-concatenate-fields-and-get-results-of/m-p/1103783#M46216</link>
      <description>&lt;P&gt;&amp;nbsp;I have created a new field in the attribute table Called "new_labes".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then right-click on 'new_labels' to open the calculate field tool I&amp;nbsp; then concatenate other fields such as SAF or SRM in the attribute table.&amp;nbsp;&amp;nbsp;the result is giving me the Coded name and not the description as it was previously was viewed in the attribution table for&amp;nbsp; SAF or SRM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;Before : SAF=pine tree and&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;After: In new_labels SAF value is seen as 001&lt;/P&gt;&lt;P&gt;I did notice that SAF does have a domain type as coded value domain which 000 = pine tree&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;how do I concatenate fields and get results of what I see in the attribute table and not the coded values in the new field created new_labels?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 22:36:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-concatenate-fields-and-get-results-of/m-p/1103783#M46216</guid>
      <dc:creator>markross</dc:creator>
      <dc:date>2021-09-30T22:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I concatenate fields and get results of what I see in the attribute table and not the coded values in the new field created ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-concatenate-fields-and-get-results-of/m-p/1103809#M46218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/438751"&gt;@markross&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The GDB's domains have a code and a description. The calculator is grabbing the code instead of the description.&lt;/P&gt;&lt;P&gt;In the field calculator, using Python 3 as Expression Type, use the following code (replace the values in red with the relevant values):&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;new_labels&amp;nbsp;&lt;/SPAN&gt;=&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;getDomain(!&lt;FONT color="#FF0000"&gt;SourceField1&lt;/FONT&gt;!, !&lt;FONT color="#FF0000"&gt;SourceField2&lt;/FONT&gt;!, '&lt;FONT color="#FF0000"&gt;DomainName&lt;/FONT&gt;')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Code Block:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;def getDomain(source1FieldCode,source2FieldCode,DomainName):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; gdb = r"&lt;FONT color="#FF0000"&gt;yourGDB.gdb&lt;/FONT&gt;"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; dom_desc = [d.codedValues for d in arcpy.da.ListDomains(gdb) if d.name == DomainName][0]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; for code in dom_desc.items():&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if code[0]==source1FieldCode:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; domDescription1 = code[1]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if code[0]==source2FieldCode:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; domDescription2 = code[1]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; Concat = domDescription1+domDescription2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; return Concat&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You can find the domain name in the GDB's domain table.&lt;/P&gt;&lt;P&gt;Hope this helps,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uri&lt;/P&gt;&lt;H6&gt;If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.&lt;/H6&gt;</description>
      <pubDate>Fri, 01 Oct 2021 01:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-concatenate-fields-and-get-results-of/m-p/1103809#M46218</guid>
      <dc:creator>UriGilad_EsriAu</dc:creator>
      <dc:date>2021-10-01T01:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I concatenate fields and get results of what I see in the attribute table and not the coded values in the new field created ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-concatenate-fields-and-get-results-of/m-p/1104017#M46243</link>
      <description>&lt;P&gt;Thanks, Uri&lt;/P&gt;&lt;P&gt;The problem I'm still having is how do I use multiple domains? If Field one has one domain ex: "EV_SRM_COVER_TYPE" and field two has a separate domain listed ex: "EV_SAF_COVER_TYPE" in GDB.&lt;/P&gt;&lt;P&gt;Field 1 =&amp;nbsp;!SRM_COVER_TYPE!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Field 2 =&amp;nbsp;!SAF_COVER_TYPE!&lt;/P&gt;&lt;P&gt;the result is still 000-111 after I concatenate but I need the descriptions instead of the code&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 17:19:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-concatenate-fields-and-get-results-of/m-p/1104017#M46243</guid>
      <dc:creator>markross</dc:creator>
      <dc:date>2021-10-01T17:19:26Z</dc:date>
    </item>
  </channel>
</rss>

