Skip to content

Contains information about an attribute field.

Referenced by: Dynamic data layer, layerDefinition

Properties

Property Details
alias A string defining the field alias.
defaultValue The default value set for the field.
domain The domain objects if applicable.
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.
Valid values: esriFieldTypeBigInteger, esriFieldTypeBlob, esriFieldTypeDate, esriFieldTypeDateOnly, esriFieldTypeDouble, esriFieldTypeGeometry, esriFieldTypeGlobalID, esriFieldTypeGUID, esriFieldTypeInteger, esriFieldTypeLong, esriFieldTypeOID, esriFieldTypeRaster, esriFieldTypeSingle, esriFieldTypeSmallInteger, esriFieldTypeString, esriFieldTypeTimeOnly, esriFieldTypeTimestampOffset, esriFieldTypeXML

field Example

{ "alias": "Postcode", "name": "relationships/2/Postcode", "editable": false, "type": "esriFieldTypeString" }

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