CodedValueDomain QML Type

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

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



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.