<?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 to update a parent field when a related child field changes using Arcade? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726544#M31866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/UpdateParentFeature.md" title="https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/UpdateParentFeature.md"&gt;arcade-expressions/UpdateParentFeature.md at master · Esri/arcade-expressions · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Sep 2020 01:34:30 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2020-09-19T01:34:30Z</dc:date>
    <item>
      <title>How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726541#M31863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing an immediate calculation attribute rule using Pro version 2.6.1.&amp;nbsp; I have a relationship defined between a parent feature and children objects.&amp;nbsp; Whenever the user changes either the parent or any of&amp;nbsp;its children, I need to update a field on the parent feature.&amp;nbsp; Is this possible using Arcade and&amp;nbsp;&lt;SPAN&gt;immediate calculation attribute rules?&amp;nbsp; I've written the rule and it works fine when I change the parent feature, but it doesn't fire when I change the related child objects.&amp;nbsp; Then I began writing a second rule for the child object, but I realized that I would ultimately be changing something on the parent feature, which I do not think can be done using Arcade and&amp;nbsp;immediate calculation attribute rules.&amp;nbsp; The rule would also have to execute whenever a new object is related to the parent or an existing object is unrelated from the parent.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2020 17:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726541#M31863</guid>
      <dc:creator>TheodoreRakel</dc:creator>
      <dc:date>2020-09-18T17:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726542#M31864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/154383"&gt;Hussein Nasser&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/25908"&gt;Michael Miller&lt;/A&gt;‌ Hi Hussein and Mike, Do you know if this is possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2020 21:56:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726542#M31864</guid>
      <dc:creator>JosephMarsh</dc:creator>
      <dc:date>2020-09-18T21:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726543#M31865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this is definitely possible,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming two tables T1, T2 , T1 is related to T2 via field KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will add an attribute rule on T1&amp;nbsp; and you can have it trigger on update so that it makes an edit to T2 and update the related feature on T1 (find the parent feature by querying T1.KEY = $feature.KEY ..&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a blog detailing this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/" title="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/"&gt;Advanced Attribute Rules – Editing features on another class with attribute rules&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can restrict the attribute rule to execute only if a certain field has been updated by using $originalFeature&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2020 22:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726543#M31865</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2020-09-18T22:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726544#M31866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/UpdateParentFeature.md" title="https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/UpdateParentFeature.md"&gt;arcade-expressions/UpdateParentFeature.md at master · Esri/arcade-expressions · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2020 01:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726544#M31866</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-09-19T01:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726545#M31867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2020 17:17:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726545#M31867</guid>
      <dc:creator>JosephMarsh</dc:creator>
      <dc:date>2020-09-22T17:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726546#M31868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2020 17:17:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726546#M31868</guid>
      <dc:creator>JosephMarsh</dc:creator>
      <dc:date>2020-09-22T17:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726547#M31869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to know when a related child object has been unrelated from its parent feature?&amp;nbsp; I'm using&amp;nbsp;&lt;STRONG style="color: #4c4c4c; background-color: #ffffff; font-weight: 500;"&gt;$originalFeature and can compare it to $feature to determine if the child was related to a parent and now is been unrelated.&amp;nbsp; I wrote a Calculation Rule and set the trigger to Update, but the code I wrote doesn't seem to get executed when I remove a child from a relationship in Pro.&amp;nbsp; I want to set a field on the parent to null in the case of a child becoming unrelated.&amp;nbsp; Is removing a child from a relationship not considered an Update?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 20:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726547#M31869</guid>
      <dc:creator>TheodoreRakel</dc:creator>
      <dc:date>2020-09-25T20:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726548#M31870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is possible,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a constraint attribute rule on an update trigger and use $feature to query the related table to see if object still exist in the related table and block the edit if the object has been severed from the parent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you found a row that means the object still related, if you didn't that mean the object has just been recently removed and as a result you can block that by return false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 20:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726548#M31870</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2020-09-25T20:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726549#M31871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not want to prevent the child from being unrelated to the parent.&amp;nbsp; I want a field on the parent to be set to null if the user chooses to unrelate a child from the parent as shown in the screen shot below.&amp;nbsp; Will a constraint rule allow me to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/508653_UnrelatingChild.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 21:00:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726549#M31871</guid>
      <dc:creator>TheodoreRakel</dc:creator>
      <dc:date>2020-09-25T21:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726550#M31872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup you can do this with a calculation rule easily.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constrain prevent edits, calculation changes the state of the row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 21:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726550#M31872</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2020-09-25T21:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726551#M31873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not see the code that I wrote getting executed when I unrelate.&amp;nbsp; I wrote a simple calculation rule to set the 'model' field to the current time stamp whenever there's an update to the child row.&amp;nbsp; It works when I modify a field on the ElectricDeviceUnit as shown below:&lt;/P&gt;&lt;P&gt;Before update to the 'notes' field&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/508654_modelField_1.png" /&gt;&lt;/P&gt;&lt;P&gt;After update to the 'notes' field:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/508661_modelField_2.png" /&gt;&lt;/P&gt;&lt;P&gt;However, when I do an unrelate, the attribute rule does not seem to execute:&lt;/P&gt;&lt;P&gt;After unrelating the child from the parent:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/508662_modelField_3.png" /&gt;&lt;/P&gt;&lt;P&gt;The 'model' field did not get the current time stamp.&amp;nbsp; It stays null.&amp;nbsp; It seems that the code I wrote for the attribute rule did not execute as a result of doing an unrelate.&amp;nbsp; I'm using Pro version 2.6.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 21:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/726551#M31873</guid>
      <dc:creator>TheodoreRakel</dc:creator>
      <dc:date>2020-09-25T21:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parent field when a related child field changes using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/1631985#M97139</link>
      <description>&lt;P&gt;Did you ever figure this out? I'm having the same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 13:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-update-a-parent-field-when-a-related-child/m-p/1631985#M97139</guid>
      <dc:creator>BrettLessner_Nsight</dc:creator>
      <dc:date>2025-07-10T13:43:17Z</dc:date>
    </item>
  </channel>
</rss>

