FieldDescription

An object that describes a Field to be created. Creation of fields and tables is currently only supported on mobile geodatabases, either created in ArcGIS Pro or via Geodatabase.create.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(name: String, fieldType: FieldType)

Creates a new field description object with the specified name and type.

Properties

Link copied to clipboard

The field's alias. The default value is an empty string.

Link copied to clipboard

The name of the domain to use on this field. The domain must already exist in the geodatabase (see Geodatabase.createDomain). The default value of an empty string indicates that no domain should be used.

Link copied to clipboard

True if the field is editable. The default value is true.

Link copied to clipboard

The field's data type. The default is FieldType.Unknown, and must be set to a valid type.

Link copied to clipboard
var length: Int

The length of the field. The default value is 0. This only applies to text fields.

Link copied to clipboard

The field's name. Field names must be non-empty, consist only of alphanumeric characters and underscores, and cannot start with a number or an underscore.

Link copied to clipboard

True if the field is nullable. The default value is true.