<?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 ArcGIS Pro - AttributeRule - Trigger - Should trigger only for update on one specific column in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264842#M66306</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro V 3.0.3. I am planning to add an Attribute Rule on Feature Class - B to copy value from Field1 of Feature Class - A, based on value from Field2 of Feature Class B.&lt;/P&gt;&lt;P&gt;I would like to add Attribute Rule for Insert trigger only, however, by that time, Feature Class B's new feature may not have value for Field2. So, have to include Update trigger also.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this scenario, how can we control execution of Attribute Rule only on update of Field2 value of Feature class B and not on any kind of Update.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 08:49:16 GMT</pubDate>
    <dc:creator>Vara_PrasadM_S</dc:creator>
    <dc:date>2023-03-07T08:49:16Z</dc:date>
    <item>
      <title>ArcGIS Pro - AttributeRule - Trigger - Should trigger only for update on one specific column</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264842#M66306</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro V 3.0.3. I am planning to add an Attribute Rule on Feature Class - B to copy value from Field1 of Feature Class - A, based on value from Field2 of Feature Class B.&lt;/P&gt;&lt;P&gt;I would like to add Attribute Rule for Insert trigger only, however, by that time, Feature Class B's new feature may not have value for Field2. So, have to include Update trigger also.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this scenario, how can we control execution of Attribute Rule only on update of Field2 value of Feature class B and not on any kind of Update.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 08:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264842#M66306</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2023-03-07T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - AttributeRule - Trigger - Should trigger only for update on one specific column</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264895#M66311</link>
      <description>&lt;P&gt;Using the &lt;STRONG&gt;$originalFeature&lt;/STRONG&gt; object, you can check to see which attributes are edited. We do this with one of our services, where we want to pass 4 attributes to other layers, but avoid needlessly triggering the rule when other attributes are edited.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($originalFeature['some_field'] == $feature['some_field']) {
    Console('Key attribute not changed')
    // leave feature unchanged
} else {
    Console('Key attribute changed, passing update to other layer')
    // execute your expression to update the other layer
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 12:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264895#M66311</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-07T12:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - AttributeRule - Trigger - Should trigger only for update on one specific column</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264972#M66321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. This logic is working fine with Update trigger, however, its not working in case of Insert trigger.&lt;/P&gt;&lt;P&gt;So, used below in conjunction with your suggestion.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$editcontext.editType&lt;/PRE&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 16:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264972#M66321</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2023-03-07T16:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - AttributeRule - Trigger - Should trigger only for update on one specific column</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264976#M66322</link>
      <description>&lt;P&gt;Oh, good point! There's no "orginalFeature" when it's an Insert. Thanks for amending the expression!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 16:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attributerule-trigger-should-trigger/m-p/1264976#M66322</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-07T16:37:53Z</dc:date>
    </item>
  </channel>
</rss>

