The content of the choice lists is defined in the codedValues section. These choice lists can either be Esri attribute domains or choice lists that can be freely defined directly in the attribute form.
References between the attribute form fields and choice lists are defined with the aid of the "@" prefix, in the same way as dependencies between choice lists.
Example
"WATDeviceAssetgroup" : [
{
"code" : 0,
"name" : "@Value_WATDeviceAssetgroup_0",
"dependentCodedValues" : {
"assettype" : "@UN_UnknownAssetType"
}
},
{
"code" : 100,
"name" : "@Value_WATDeviceAssetgroup_100",
"dependentCodedValues" : {
"assettype" : "@WATDeviceRegulationDeviceAssetType"
}
},
{
"code" : 200,
"name" : "@Value_WATDeviceAssetgroup_200",
"dependentCodedValues" : {
"assettype" : "@WATDeviceStorageDeviceAssetType"
}
},
....
"WATDeviceRegulationDeviceAssetType" : [
{
"code" : 0,
"name" : "@Value_WATDeviceRegulationDeviceAssetType_0"
},
{
"code" : 102,
"name" : "@Value_WATDeviceRegulationDeviceAssetType_102"
},
{
"code" : 103,
"name" : "@Value_WATDeviceRegulationDeviceAssetType_103"
},
...
The name of a choice list can be referenced by other choice lists or fields. The WATDeviceRegulationDeviceAssetType codedValue is defined in the example above, and defined independently of the WATDeviceRegulationDevice coded Value.
Syntax VertiGIS models:
1.Name of the choice list : <attribute domainname>
WATDeviceASSETGROUP, WATDeviceRegulationDeviceAssetType
2.Content of choice list, values in the choice list: Name of the value:
Value_<attributedomainname><_attributedomaincode>
Value_WATDeviceRegulationDeviceAssetType_103
The name specified also references the locales section to show the display of choice-list values in the desired language.
3.DependentCodedValues:
a.For fully-dependent choice lists: <domainname/Fieldname>
b.If just part of the choice list is dependent on the first field name
<Domainname/Fieldname><_dependencycode>
Part of the name |
Values |
Domain name / field name |
Consists of the utility prefix and attribute name, or the Esri attribute domain name |
Dependency code |
Coded Value, upon which values are dependent |
Examples for
a.: WATDeviceRegulationDeviceAssetType, WATDeviceStorageDeviceAssetType
b.: ELE_CableCrossection_170
(-> only cross-section values that are valid for ELELineAssettype 170 are brought into the dependent choice list. In this example, the system skips to a codedValue record ELE_CableCrossection_170 via the reference to the dependentcodedvalue, whereby the individual visible code values are then listed)