Select to view content in your preferred language

Having a child field reference a parent field in FieldMaps

185
2
Monday
WilliamBanker-Hix
New Contributor

Hello, this is likely an extremely simple question but what would be the best method to reference a parent field automatically when entering data in a child field for a related record. 

For instance, we are using field maps to create a map that has a well locations points layer (Parent Field) on it and each well has a history of water levels (Child Field) associated with it via a relationship class. The relationship class is a 1 to 1 using their global IDs. The water levels need to have a "reference point" filled in to enter the data. The reference point is a field on the well location record that will never change.Currently, when entering a new water level, you have to manually enter that reference point, which is a good way to get transcription errors in the field.

What is the best method to automatically populate the reference point field in my water level form? Should I use an Arcade/python script to do it, or is there some other method in Field Maps or ArcGIS Pro itself?

Thanks again for any help!

0 Kudos
2 Replies
ChristopherCounsell
MVP Frequent Contributor

If you have created a relationship class, publish as a layer, you should be able to add related records directly against the parent.

If you have this set up, you can create a form and use FeatureSet to call upon the related feature field and calculate the field automatically. Examples in here:

https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/arcgis-field-maps-get-started-wi...

0 Kudos
WilliamBanker-Hix
New Contributor

Ill give it a shot and get back to you on if that works! Thank you very much!

 

 

0 Kudos