CodedValueDomain QML Type

A domain which specifies an explicit set of valid values for a field. More...

Import Statement: import Esri.ArcGISRuntime 100.15
Since: Esri.ArcGISRuntime 100.0
Inherits:

Domain

Properties

Detailed Description

Note: Since the 100.10 release, this class may be created from json. This is the only way the class may be created.

Obtain coded values from a field's CodedValueDomain:

ServiceFeatureTable {
    id: featureTable
    url: sampleServerDamageInspectionUrl

    onLoadStatusChanged:  {
        if (loadStatus === Enums.LoadStatusLoaded) {
            var field = featureTable.field("PRIMCAUSE");
            var codedValueDomain = field.domain;
            var codedValue1 = codedValueDomain.codedValues[0].name;
            var codedValue2 = codedValueDomain.codedValues[1].name;
            var codedValue3 = codedValueDomain.codedValues[2].name;
            var codedValue4 = codedValueDomain.codedValues[3].name;
        }
    }
}

See also CodedValue.

Property Documentation

codedValues : list<CodedValue>

Returns the explicit set of valid values for a field (read-only).

The coded values of this domain. Each valid value is assigned a unique name.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close