Use one domain to populate multiple layers in AGOL

385
1
Jump to solution
03-17-2023 04:57 PM
JeffJensen3
New Contributor II

I am working on a AGOL map which will be used in Field Maps to collect data on 3 different layers, 1 line layer and 2 point layers.  Each of the 3 features contains a 'Contractor' field.  I am unfamiliar if there is a way to create a single table with the contractors that can be used as selections for the 'Contractor' field in the 3 different layers.

I have domains for each of the layers but when a contractor is added or removed I have to go to each individual domain.  I only want to add it at one location.

The project will be used in Field Maps.  Any help would be appreciated.

1 Solution

Accepted Solutions
ChristopherCounsell
MVP Regular Contributor

If you don't want to do it for each table through the UI, you will need to use python. You could write a script to update the domain list for each of the three layers. Some examples here:

https://community.esri.com/t5/arcgis-api-for-python-questions/updating-feature-service-coded-value-d...

https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-a-way-to-update-coded-valu...

Survey123 allows you to have non-domain fields, and use a CSV file as a choice list, that is updated when the users re-open the survey from the Survey123 app (bug exists if launched from custom URL...). This won't work in your case as Field Maps uses the data domain list itself, but worth mentioning.

View solution in original post

0 Kudos
1 Reply
ChristopherCounsell
MVP Regular Contributor

If you don't want to do it for each table through the UI, you will need to use python. You could write a script to update the domain list for each of the three layers. Some examples here:

https://community.esri.com/t5/arcgis-api-for-python-questions/updating-feature-service-coded-value-d...

https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-a-way-to-update-coded-valu...

Survey123 allows you to have non-domain fields, and use a CSV file as a choice list, that is updated when the users re-open the survey from the Survey123 app (bug exists if launched from custom URL...). This won't work in your case as Field Maps uses the data domain list itself, but worth mentioning.

0 Kudos