Select to view content in your preferred language

Attribute Rule to Related Table

6247
11
02-04-2021 07:47 AM
LindseyStone
Frequent Contributor

I'm not good with attribute rule coding and needing a little help.  I'm trying to set up an attribute rule where it will take a field data from a layer and auto populate a field in the related table with the same data.  I have run across a few threads where you are populating the layer for the table but not this way.  Here is my example (I'm using a SDE SQL)

Hydrant Device Feature Class is Related to Hydrant Maintenance Inspection Table.  I want the Utility_AssetID field in Hydrant Device to auto-populate the Utility_AssetID field in the Hydrant Maintenance Inspection Table upon creation of the inspection.

Tags (1)
0 Kudos
11 Replies
DCEOAdmin
Emerging Contributor

I figured it out by hovering over the red square, I was concentrated on the red exclamation mark didn't see the square.

0 Kudos
AneteZvaigzneLV
Regular Contributor

I have a very similar, maybe even more simple question/issue. 

I have a parent point feature layer. Simple Relationship Class created with a related table. I want to ''feed'' the related table with a value from parent feature field named "STD". I tried an attribute rule, using Feature Set By name Arcade function but it ignores me. I wonder is it even possible. Basically when I create a record for the address point that is related by GlobalID-GUID, I would also like to populate another field. 

var relationship = FeatureSetByName($datastore, "Adresu_punkti2", ["STD"])

return relationship

 

Any help/comment/direction would be greatly appreciated.