<?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>idea Sample attribute rule to enforce subtype domains in Attribute Rules Ideas</title>
    <link>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idi-p/1192745</link>
    <description>&lt;P&gt;For a table that has a subtype:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1658085291411.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46002iE05E091A49F4CB48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_3-1658085291411.png" alt="Bud_3-1658085291411.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The subtype fields have domains.&lt;/P&gt;&lt;P&gt;For example, when the ASSET_CLASS subtype value&amp;nbsp; = 0 (ACTIVE_TRANSPORTATION), the ACTIVITY field uses the ACTIVITY_ATN domain.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Just like with regular domains, subtype domains can be easily overridden via the Field Calculator and other mechanisms.&lt;/P&gt;&lt;P&gt;For example, 'asdf' is not a valid ACTIVITY_ATN domain code, but I can still enter that value via the Field Calculator.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_5-1658085692976.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46004i9B9326D1E52D5AEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_5-1658085692976.png" alt="Bud_5-1658085692976.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_6-1658086098018.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46005i8FDAB953D540F2B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_6-1658086098018.png" alt="Bud_6-1658086098018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Idea:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS, hard-enforcing subtypes and domains isn't supported, and likely won't be supported any time soon.&lt;/P&gt;&lt;P&gt;As a workaround, could Esri provide a sample attribute rule for&amp;nbsp;enforcing subtype domains? (in the Esri Arcade GitHub)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 03:35:33 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-03-01T03:35:33Z</dc:date>
    <item>
      <title>Sample attribute rule to enforce subtype domains</title>
      <link>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idi-p/1192745</link>
      <description>&lt;P&gt;For a table that has a subtype:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1658085291411.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46002iE05E091A49F4CB48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_3-1658085291411.png" alt="Bud_3-1658085291411.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The subtype fields have domains.&lt;/P&gt;&lt;P&gt;For example, when the ASSET_CLASS subtype value&amp;nbsp; = 0 (ACTIVE_TRANSPORTATION), the ACTIVITY field uses the ACTIVITY_ATN domain.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Just like with regular domains, subtype domains can be easily overridden via the Field Calculator and other mechanisms.&lt;/P&gt;&lt;P&gt;For example, 'asdf' is not a valid ACTIVITY_ATN domain code, but I can still enter that value via the Field Calculator.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_5-1658085692976.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46004i9B9326D1E52D5AEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_5-1658085692976.png" alt="Bud_5-1658085692976.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_6-1658086098018.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46005i8FDAB953D540F2B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_6-1658086098018.png" alt="Bud_6-1658086098018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Idea:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS, hard-enforcing subtypes and domains isn't supported, and likely won't be supported any time soon.&lt;/P&gt;&lt;P&gt;As a workaround, could Esri provide a sample attribute rule for&amp;nbsp;enforcing subtype domains? (in the Esri Arcade GitHub)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 03:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idi-p/1192745</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-03-01T03:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sample attribute rule to enforce subtype domains</title>
      <link>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idc-p/1195711#M92</link>
      <description>&lt;P&gt;I think I wrote a blog when we first introduced `Domain` Arcade function on how to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/domain-subtypes-and-the-schema-arcade-functions-in-arcgis-pro-2-6/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/domain-subtypes-and-the-schema-arcade-functions-in-arcgis-pro-2-6/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HusseinNasser2_0-1658795273114.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46740iD5060283FE9D21F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HusseinNasser2_0-1658795273114.png" alt="HusseinNasser2_0-1658795273114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is subtype agnostic but you should be able to get the Domain at the subtype level by passing the subtype code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 00:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idc-p/1195711#M92</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2022-07-26T00:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sample attribute rule to enforce subtype domains - Status changed to: Needs Clarification</title>
      <link>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idc-p/1389205#M220</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did the documentation provided by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346994"&gt;@HusseinNasser2&lt;/a&gt;&amp;nbsp;help you get to a solution here?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 00:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idc-p/1389205#M220</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2024-03-01T00:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sample attribute rule to enforce subtype domains</title>
      <link>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idc-p/1389260#M221</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The short answer is: I'm not good enough with Arcade code to get that working for subtype domains.&lt;/P&gt;&lt;P&gt;It would be ideal to have a sample script that is specifically for enforcing a domain that comes from a subtype.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 03:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-ideas/sample-attribute-rule-to-enforce-subtype-domains/idc-p/1389260#M221</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-03-01T03:37:53Z</dc:date>
    </item>
  </channel>
</rss>

