<?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: Attribute Rule Not Triggering When Domain Change/Update in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347825#M1185</link>
    <description>&lt;P&gt;Thanks for the reply Mike but can you please explain this a little bit better. What do you mean by "&lt;SPAN&gt;You need to return the edit" you mean I should&amp;nbsp;start edit Sesson?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 17:17:13 GMT</pubDate>
    <dc:creator>BHK</dc:creator>
    <dc:date>2023-11-09T17:17:13Z</dc:date>
    <item>
      <title>Attribute Rule Not Triggering When Domain Change/Update</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347708#M1179</link>
      <description>&lt;P&gt;Having a GDB with a Feature Class called `Inspection` and a Domain (InspectStat) with "Yes" and "No" coded values which is assigned to `&lt;STRONG&gt;Is_Inspected&lt;/STRONG&gt;` field, I want to enable user to Add &lt;STRONG&gt;Today() &lt;/STRONG&gt;date into `I&lt;STRONG&gt;nspect_Date&lt;/STRONG&gt;` field&amp;nbsp; when&amp;nbsp;`&lt;STRONG&gt;Is_Inspected&lt;/STRONG&gt;` status change&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;If ($feature.Is_Inspected =='Yes')  {
$feature.Inspect_Date = Today()
}else{
$feature.Inspect_Date = null
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BHK_0-1699540673799.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/85504i3CEEFE005A44E116/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BHK_0-1699540673799.png" alt="BHK_0-1699540673799.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used Calculation immediate rule against the&amp;nbsp;Is_Inspected field and Triggers are Insert and update but when I update the value of&amp;nbsp;Is_Inspected (using domain "Yes" or "No") I am not getting any changes/updates on&amp;nbsp;`Inspect_Date` and it is always null&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 14:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347708#M1179</guid>
      <dc:creator>BHK</dc:creator>
      <dc:date>2023-11-09T14:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Not Triggering When Domain Change/Update</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347797#M1183</link>
      <description>&lt;P&gt;You need to return the edit, setting it on $feature does not affect the feature&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 16:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347797#M1183</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2023-11-09T16:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Not Triggering When Domain Change/Update</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347825#M1185</link>
      <description>&lt;P&gt;Thanks for the reply Mike but can you please explain this a little bit better. What do you mean by "&lt;SPAN&gt;You need to return the edit" you mean I should&amp;nbsp;start edit Sesson?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 17:17:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347825#M1185</guid>
      <dc:creator>BHK</dc:creator>
      <dc:date>2023-11-09T17:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Not Triggering When Domain Change/Update</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347828#M1186</link>
      <description>&lt;P&gt;Take a look at this article -&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 17:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347828#M1186</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2023-11-09T17:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Not Triggering When Domain Change/Update</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347854#M1187</link>
      <description>&lt;P&gt;Ok I updated the code to this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;If ($feature.Is_Inspected =='Yes')  {
return {
    "result": $feature.Inspect_Date,
    "edit": [{
        "updates": [{
            "Inspect_Date": Today()
        }]
    }]
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but still not working&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 18:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-not-triggering-when-domain-change/m-p/1347854#M1187</guid>
      <dc:creator>BHK</dc:creator>
      <dc:date>2023-11-09T18:21:41Z</dc:date>
    </item>
  </channel>
</rss>

