fieldUtils
require(["esri/layers/support/fieldUtils"], function(fieldUtils) { /* code goes here */ });esri/layers/support/fieldUtilsConvenience methods for getting field names used for feature layer labeling, elevation, editor tracking and time span.
Method Overview
| Name | Return Type | Summary | Object | |
|---|---|---|---|---|
| Promise<string[]> | Returns an array of field names used in the Arcade expression for calculating the Z values of features in the given feature layer's FeatureLayer.elevationInfo. more details | more details | fieldUtils | |
| String[] | Returns an array of editor tracking field names for a given feature layer. more details | more details | fieldUtils | |
| Promise<string[]> | Returns an array of field names used in the Arcade expression for labeling features in the given feature layer's FeatureLayer.labelingInfo. more details | more details | fieldUtils | |
| Promise<string[]> | Returns an array of field names related to time. more details | more details | fieldUtils |
Method Details
Returns an array of field names used in the Arcade expression for calculating the Z values of features in the given feature layer's FeatureLayer.elevationInfo.
Parameter:layer FeatureLayerThe featureLayer to extract fields required for calculating feature Z values.
Returns:Type Description Promise<string[]> When resolved, returns an array of field names.
Returns an array of editor tracking field names for a given feature layer. It includes the fields from the FeatureLayer.editFieldsInfo.
Parameter:layer FeatureLayerThe Feature Layer from which to extract editor tracking fields.
Returns:Type Description String[] An array of field names used for editor tracking.
Returns an array of field names used in the Arcade expression for labeling features in the given feature layer's FeatureLayer.labelingInfo.
Parameter:layer FeatureLayerThe Feature Layer from which to extract label fields.
Returns:Type Description Promise<string[]> When resolved, returns an array of field names used for labeling.
Returns an array of field names related to time. It includes the fields from the FeatureLayer.timeInfo, and the
trackIdField.Parameter:layer FeatureLayerThe Feature Layer from which to extract time fields.
Returns:Type Description Promise<string[]> When resolved, returns an array of time field names.