<?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 sample for cascading update from Record to Parcel Type? in ArcGIS Parcel Fabric Questions</title>
    <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/attribute-rule-sample-for-cascading-update-from/m-p/1184812#M698</link>
    <description>&lt;P&gt;you can use the "edit" key word in a calculation rule to update other feature classes. Excellent intro blog &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/" target="_self"&gt;here&lt;/A&gt;. The bit I find tricky to get the names of the tables right. Here is&amp;nbsp; the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_self"&gt;documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 19:16:27 GMT</pubDate>
    <dc:creator>DrewDowling</dc:creator>
    <dc:date>2022-06-21T19:16:27Z</dc:date>
    <item>
      <title>Attribute Rule sample for cascading update from Record to Parcel Type?</title>
      <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/attribute-rule-sample-for-cascading-update-from/m-p/1184793#M697</link>
      <description>&lt;P&gt;Good day,&lt;BR /&gt;&lt;BR /&gt;Can we see an example of a "Cascading" update from the Record to a parcel type using an Attribute Rule?&lt;BR /&gt;&lt;BR /&gt;All the current Arcade samples are simple.&lt;BR /&gt;&lt;BR /&gt;How do you transfer a value from a field in the Record table (parent) to the same field in the Parcel Type (i.e. Land_Parcel_Lines with the same CreatedByRecord as the record) when the "Record" is inserted or updated. It's a "calculation" rule I presume?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 18:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-parcel-fabric-questions/attribute-rule-sample-for-cascading-update-from/m-p/1184793#M697</guid>
      <dc:creator>PascalVezina</dc:creator>
      <dc:date>2022-06-21T18:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule sample for cascading update from Record to Parcel Type?</title>
      <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/attribute-rule-sample-for-cascading-update-from/m-p/1184812#M698</link>
      <description>&lt;P&gt;you can use the "edit" key word in a calculation rule to update other feature classes. Excellent intro blog &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/" target="_self"&gt;here&lt;/A&gt;. The bit I find tricky to get the names of the tables right. Here is&amp;nbsp; the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_self"&gt;documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 19:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-parcel-fabric-questions/attribute-rule-sample-for-cascading-update-from/m-p/1184812#M698</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2022-06-21T19:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule sample for cascading update from Record to Parcel Type?</title>
      <link>https://community.esri.com/t5/arcgis-parcel-fabric-questions/attribute-rule-sample-for-cascading-update-from/m-p/1184979#M699</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16382"&gt;@PascalVezina&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's great to see you make strides in Arcade and thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1327"&gt;@DrewDowling&lt;/a&gt;&amp;nbsp;for sharing the link to Husseins' blog.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of updating a line geometry based on a point location:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-parcel-fabric-blog/using-attribute-rules-to-update-the-line-geometry/ba-p/1103947" target="_blank"&gt;https://community.esri.com/t5/arcgis-parcel-fabric-blog/using-attribute-rules-to-update-the-line-geometry/ba-p/1103947&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another example (that had a scalability issue) is where an update to a smaller US PLSS 'intersected' polygon updates a section by selecting and dissolving all other 'intersected building blocks'.&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6308305011112w960h540r45" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6308305011112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6308305011112w960h540r45');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6308305011112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the expression used&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var twpNo = $feature.TWNSHPNO
var twpDir = $feature.TWNSHPDIR
var rangeNo = $feature.RANGENO
var rangeDir = $feature.RANGEDIR
var sectionNo =$feature.FRSTDIVNO

//The attribute rule is added to the Intersected polygon class on the FRSTDIVNO field on update

//select all other intersected polygons that belong to the same section

//construct a sql query for intersected and sections
var sql = "TWNSHPNO = '" + twpNo + "' And TWNSHPDIR = '" + twpDir + "' And RANGENO = '" + rangeNo + "' And RANGEDIR = '" + rangeDir + "' And FRSTDIVNO = '" + sectionNo + "'";

//dissolve all intersected polygons in the section to get a polygon geometry
var fields = ['TWNSHPNO','TWNSHPDIR','RANGENO','RANGEDIR','FRSTDIVNO', 'GlobalID'];
var intersected = FeatureSetbyName($datastore, "Intersected",fields, true);
var fsIntersected = Filter(intersected,sql);

var SectionGeometry = Geometry($feature);
for (var interPoly in fsIntersected){
    SectionGeometry = Union(SectionGeometry, Geometry(interPoly));
}

//find the corresponding section geometry feature
var sections = FeatureSetbyName($datastore, "Sections",fields, true);
var fsSections = Filter(sections,sql);

//get the section row (we should only have one )
var sectionToUpdate = first(fsSections);
var sectionGlobalID = sectionToUpdate.GlobalID;

return {
      //we want to just return the value of field `FRSTDIVNO` no change require
      "result": $feature.Field,
      //this keyword indicates an edit that need to happen, its an array since we can make many edits
       "edit": [
           {  
              //the other class we want to edit
               "className" : "Sections",
               //the type of edit, in this case we want to update so we say `updates`, its an array since we can make many updates
               "updates" : [
                      { 
                            //what feature we need to update? we can either find it by the globalid or the objectId
                            "globalID" : sectionToUpdate.GlobalID,
                            //what do we want to update (we can optionally add attributes property and update properties there)
                            "geometry": sectionGeometry

                     }
             ]
            }    
     ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have a your expression working, please share.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 08:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-parcel-fabric-questions/attribute-rule-sample-for-cascading-update-from/m-p/1184979#M699</guid>
      <dc:creator>AmirBar-Maor</dc:creator>
      <dc:date>2022-06-22T08:04:20Z</dc:date>
    </item>
  </channel>
</rss>

