A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/en/javascript/jsapi/field-amd.html below:

Field | API Reference | ArcGIS API for JavaScript 3.46

require(["esri/layers/Field"], function(Field) { /* code goes here */ });
Description

(Added at v2.0)

Information about each field in a layer. Field objects must be constructed when creating a

FeatureLayer

from a client-side feature collection.

See the documentation

of the FeatureLayer constructor for more details. This class allows you to define the schema of each field in the FeatureLayer. Note that you do not need to add fields to the constructor of a FeatureLayer loaded from a service since they are already defined by the service.

See the FeatureCollection

sample for an example of working with this class.

Samples

Search for

samples

that use this class.

Properties

Property Details

The alias name for the field.

A string that describes the default value set for a field. (Added at v3.28)

Contains information describing the purpose of each field and the various types of data each field contains. See the object specification below. (Added at v3.28)

Object Specifications:

<description>

<String> fieldValueType Required The various types of values that can be assigned to a field.

There are 12 possible types:

<String> value Required The string value that describes the field.

Sample: {"value":"State FIPS code. Federal Information Processing Standards (FIPS) are numeric codes assigned by the National Institute of Standards and Technology (NIST). FIPS codes identify US states by a 2-digit number, and US counties by a 3-digit number.","fieldValueType":"typeOrCategory"}

Domain associated with the field.

Indicates whether the field is editable.

Known values: true | false

Indicates if the field can accept null values. Requires ArcGIS Server version 10.1 or greater. (Added at v2.6)

Known values: true | false

The data type of the field.

Can be one of the following: "esriFieldTypeSmallInteger", "esriFieldTypeInteger", "esriFieldTypeSingle", "esriFieldTypeDouble", "esriFieldTypeString", "esriFieldTypeDate", "esriFieldTypeOID", "esriFieldTypeGeometry", "esriFieldTypeBlob", "esriFieldTypeRaster", "esriFieldTypeGUID", "esriFieldTypeGlobalID", "esriFieldTypeXML"


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4