Select to view content in your preferred language

Update related FC if a record is changed or added.

209
0
09-17-2024 11:27 AM
KJF
by
New Contributor

Hey all,

I'm relatively new to Attribute rules, and arcade. I do use them to do some simple rounding calculations within an FC, but I'd like to set up something a bit more complex.

I have two feature classes, Index_Points and Harv_Method, these two layers have a relationship class set up based on a field called "BLOCK". It is a one-to-many relationship from the Index to the Harv_Method layer. 

The Harv_Method layer has a field named "Method", with options for "Helicopter", "Ground-Based", and "Grapple". There is an attribute rule that calculates the hectares covered by each polygon type called HA. The index layer has corresponding fields for the area relating to each above option (ie. HELI_AREA). 

What I'd like to be able to do is create/update a polygon in the Harv_Method layer and have the area that is calculated into the HA field update the value in the area field of the Index_Points layer for the particular type of area.

Essentially if a Harv_Method polygon is created or updated with the related "BLOCK" name and  "Method" = HELI, sum all the polygon areas and return that value into the HELI_AREA field of the Index_Point layer with the same "BLOCK" name. Do this for "Ground-Based" and "Grapple" as well. 

Any help would be much appreciated!

0 Kudos
0 Replies