Skip To Content
ArcGIS Developer
Dashboard

Common Data Types

field

A field object contains information about an attribute field. This field can come from a feature collection or a single layer in a map service. This is used in layerDefinition.

Properties

PropertyDetails
alias

A string defining the field alias.

domain

A domain object, defined using the syntax of the ArcGIS REST API. This provides the attribute domain information for the field, if a domain exists.

editable

A Boolean defining whether this field is editable.

length

The number of characters that are allowed in a string field.

name

A string defining the field name.

nullable

A Boolean defining whether this field can have a null value.

type

A string defining the field type.

Values: esriFieldTypeBlob | esriFieldTypeDate | esriFieldTypeDouble | esriFieldTypeGeometry | esriFieldTypeGlobalID | esriFieldTypeGUID | esriFieldTypeInteger | esriFieldTypeOID | esriFieldTypeRaster | esriFieldTypeSingle | esriFieldTypeSmallInteger | esriFieldTypeString | esriFieldTypeXML

Example


{
  "name": "IMAGEURL",
  "alias": "IMAGEURL",
  "type": "esriFieldTypeString",
  "length": 255,
  "editable": true,
  "nullable": true,
  "domain": null
}
In this topic
  1. Properties
  2. Example