field

Contains information about an attribute field. This field could come from a feature collection or a single layer in a map service. Used in layerDefinition.

Properties

Property

Details

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

A number defining how many characters 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. Available values include 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
            }
12/11/2012