<?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: Coded Value Domain: Assign multiple codes to a single description in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604935#M94852</link>
    <description>&lt;P&gt;So I'm thinking a &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/calculation-attribute-rules.htm" target="_self"&gt;calculation attribute rule&lt;/A&gt; would be possible in this scenario.&amp;nbsp; The arcade code block in building the attribute rule would be something like this:&lt;BR /&gt;&lt;BR /&gt;var code = $feature.Code;&lt;BR /&gt;var description = When(&lt;BR /&gt;code == 0 || code == 1 || code == 2, "Low Risk",&lt;BR /&gt;code == 3 || code == 4 || code == 5, "Medium Risk",&lt;BR /&gt;code == 6 || code == 7 || code == 8, "High Risk",&lt;BR /&gt;"Other"&lt;BR /&gt;);&lt;BR /&gt;return description;&lt;BR /&gt;&lt;BR /&gt;You can make it an immediate calculation rule so when an editor types in the value 1 for the code field, the attribute rule triggers and calculates the Description field to be "low risk".&amp;nbsp; Caveat here - I'm not an arcade guru so the script may need some tweaking.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2025 20:05:58 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2025-04-10T20:05:58Z</dc:date>
    <item>
      <title>Coded Value Domain: Assign multiple codes to a single description</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604800#M94833</link>
      <description>&lt;P&gt;Does anyone know of a more efficient way to set up a coded value domain where numerous code values can represent a single description? Here's a snippet to show what I have:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ClintSteeves1_0-1744299241124.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129988i2D2CE5C21245D275/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ClintSteeves1_0-1744299241124.png" alt="ClintSteeves1_0-1744299241124.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I'd like to see is something along the lines of:&lt;/P&gt;&lt;TABLE border="1" width="40%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="51.0469px" height="26px"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="96.375px" height="26px"&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="51.0469px" height="25px"&gt;0-2&lt;/TD&gt;&lt;TD width="96.375px" height="25px"&gt;Low Risk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="51.0469px" height="25px"&gt;3-5&lt;/TD&gt;&lt;TD width="96.375px" height="25px"&gt;Medium Risk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="51.0469px" height="25px"&gt;6-8&lt;/TD&gt;&lt;TD width="96.375px" height="25px"&gt;High Risk&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;TABLE border="1" width="40%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="51.0469px" height="26px"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="96.375px" height="26px"&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="51.0469px" height="47px"&gt;0, 1, 2&lt;/TD&gt;&lt;TD width="96.375px" height="47px"&gt;Low Risk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="51.0469px" height="47px"&gt;3, 4, 5&lt;/TD&gt;&lt;TD width="96.375px" height="47px"&gt;Medium Risk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="51.0469px" height="47px"&gt;6, 7, 8&lt;/TD&gt;&lt;TD width="96.375px" height="47px"&gt;High Risk&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The number that will be used to determine risk level is calculated from four other numerical fields, and although I recognize I could set up the script to assign values of 0, 1, or 2 based on those number ranges, it would be nice to not require a workaround like that. I'd like to maintain the actual calculated values, because a High Risk with level 6 is still of lower importance than a High Risk of level 8.&lt;BR /&gt;&lt;BR /&gt;Obviously, this is working as-is, but I was just wondering if anyone had any suggestions for a situation like this where perhaps the code values can range from 0 to 100. Inputting a description for each one of those code values would be a tedious job, even using a script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 15:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604800#M94833</guid>
      <dc:creator>ClintSteeves1</dc:creator>
      <dc:date>2025-04-10T15:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Coded Value Domain: Assign multiple codes to a single description</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604867#M94836</link>
      <description>&lt;P&gt;If you make good use of the script tool parameter types this can be an efficient script tool. I've attached a tool with no code to execute but the parameters and validation already done, this illustrates how you can quickly gather a bunch of code ranges and their associated descriptions, for both new and existing domains.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 17:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604867#M94836</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-10T17:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Coded Value Domain: Assign multiple codes to a single description</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604893#M94844</link>
      <description>&lt;P&gt;I'll check that out, thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 18:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604893#M94844</guid>
      <dc:creator>ClintSteeves1</dc:creator>
      <dc:date>2025-04-10T18:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Coded Value Domain: Assign multiple codes to a single description</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604935#M94852</link>
      <description>&lt;P&gt;So I'm thinking a &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/calculation-attribute-rules.htm" target="_self"&gt;calculation attribute rule&lt;/A&gt; would be possible in this scenario.&amp;nbsp; The arcade code block in building the attribute rule would be something like this:&lt;BR /&gt;&lt;BR /&gt;var code = $feature.Code;&lt;BR /&gt;var description = When(&lt;BR /&gt;code == 0 || code == 1 || code == 2, "Low Risk",&lt;BR /&gt;code == 3 || code == 4 || code == 5, "Medium Risk",&lt;BR /&gt;code == 6 || code == 7 || code == 8, "High Risk",&lt;BR /&gt;"Other"&lt;BR /&gt;);&lt;BR /&gt;return description;&lt;BR /&gt;&lt;BR /&gt;You can make it an immediate calculation rule so when an editor types in the value 1 for the code field, the attribute rule triggers and calculates the Description field to be "low risk".&amp;nbsp; Caveat here - I'm not an arcade guru so the script may need some tweaking.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 20:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604935#M94852</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-04-10T20:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Coded Value Domain: Assign multiple codes to a single description</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604944#M94853</link>
      <description>&lt;P&gt;This stores the code in one field and the description in another, which is different from having a coded-value domain on an integer field. Not strictly wrong, but not as useful as a proper field in my experience.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 20:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604944#M94853</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-10T20:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Coded Value Domain: Assign multiple codes to a single description</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604959#M94856</link>
      <description>&lt;P&gt;True.&amp;nbsp; Just another way of looking at the question I suppose.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 20:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/coded-value-domain-assign-multiple-codes-to-a/m-p/1604959#M94856</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-04-10T20:39:42Z</dc:date>
    </item>
  </channel>
</rss>

