Skip To Content ArcGIS for Developers Sign In Dashboard

CodedValueDomain QML Type

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

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



Detailed Description

Note: You cannot declare or create a component of this type in QML code.

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.

Feedback on this topic?