Using Collector to collect / update signs along multiple canals. Want to consolidate the condition of each sign (good / weathered / repair / replace ect). Any ideas how to make this happen?
Solved! Go to Solution.
You can use the REST API to edit the feature's json file. Domains are listed in the fields section, and looks something like (in the case of a field named "Informed"):
{
"name" : "Informed",
"type" : "esriFieldTypeString",
"alias" : "2 Employees informed of laws",
"sqlType" : "sqlTypeOther",
"length" : 1,
"nullable" : false,
"editable" : true,
"domain" :
{
"type" : "codedValue",
"name" : "YN",
"codedValues" : [
{
"name" : "?",
"code" : "?"
},
{
"name" : "No",
"code" : "N"
},
{
"name" : "Yes",
"code" : "Y"
}
]
},
"defaultValue" : null
},
If you decide to edit the json, I would also suggest looking at the "types" section in case the field needing modification is used in symbology. This section may also require editing.
To get to the json file, in My Content, click on the feature layer. From the layer's Overview tab, look in the Layers section and click on "Service URL". You should get a page with a link indicating "JSON". To update the json you need to be in the Administration directory. Use the API Reference link for additional help.
If you haven't edited a json file, do some testing with a backup.
Where is your data being stored? AGOL or your own server?
AGOL
You can use the REST API to edit the feature's json file. Domains are listed in the fields section, and looks something like (in the case of a field named "Informed"):
{
"name" : "Informed",
"type" : "esriFieldTypeString",
"alias" : "2 Employees informed of laws",
"sqlType" : "sqlTypeOther",
"length" : 1,
"nullable" : false,
"editable" : true,
"domain" :
{
"type" : "codedValue",
"name" : "YN",
"codedValues" : [
{
"name" : "?",
"code" : "?"
},
{
"name" : "No",
"code" : "N"
},
{
"name" : "Yes",
"code" : "Y"
}
]
},
"defaultValue" : null
},
If you decide to edit the json, I would also suggest looking at the "types" section in case the field needing modification is used in symbology. This section may also require editing.
To get to the json file, in My Content, click on the feature layer. From the layer's Overview tab, look in the Layers section and click on "Service URL". You should get a page with a link indicating "JSON". To update the json you need to be in the Administration directory. Use the API Reference link for additional help.
If you haven't edited a json file, do some testing with a backup.
Thanks. Will take a look at that.