Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.41 KB

field.cmn.md

File metadata and controls

51 lines (42 loc) · 1.41 KB

field

A collection of objects describing each attribute field.

Related:

cmn::3DSceneLayer, psl::3DSceneLayer, psl::3DSceneLayer

Properties

Property Type Description
name string Name of the field.
type string Type of the field.
Possible values are:
  • esriFieldTypeDate
  • esriFieldTypeSingle
  • esriFieldTypeDouble
  • esriFieldTypeGUID
  • esriFieldTypeGlobalID
  • esriFieldTypeInteger
  • esriFieldTypeOID
  • esriFieldTypeSmallInteger
  • esriFieldTypeString
alias string Alias of the field.
domain domain Array of domains defined for a field.

Note: properties in bold are required

Examples

Example: Fields example

 {
  "name": "CreatedPhase",
  "type": "esriFieldTypeInteger",
  "alias": "CreatedPhase",
  "domain": {
    "type": "codedValue",
    "name": "Phases",
    "description": "Phases",
    "codedValues": [
      {
        "name": "Existing",
        "code": 0
      },
      {
        "name": "Baby Room Overhaul",
        "code": 1
      },
      {
        "name": "Roof Garden",
        "code": 2
      }
    ],
    "mergePolicy": "esriMPTDefaultValue",
    "splitPolicy": "esriSPTDefaultValue"
  }
}