▾
import UpdateFeaturesWorkflowData from "@arcgis/core/widgets/Editor/UpdateFeaturesWorkflowData.js";const UpdateFeaturesWorkflowData = await $arcgis.import("@arcgis/core/widgets/Editor/UpdateFeaturesWorkflowData.js");- Inheritance
- UpdateFeaturesWorkflowData→
Accessor
This object supports the Editor widget. It contains data for the UpdateFeaturesWorkflow. This is accessed via the UpdateFeaturesWorkflow.data.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| readonly inherited | ||
| readonly | | |
| readonly | FeatureInfo[] | null | undefined | |
| readonly | Graphic[] | |
| | ||
| |
editorItems
- Type
- EditorItem[]
The EditorItem objects from EditorViewModel corresponding to the
layers/tables being updated.
This array should be treated as read-only.
featureInfos
- Type
- FeatureInfo[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 4.34
The layers and ids of features that are being updated. Different items should not reference the same layer multiple times. If this occurs, the item with the highest relative index takes priority, and object ids from earlier items are ignored.
This array should be treated as read-only. To update a different set of features, create a new workflow.
features
- Type
- Graphic[]
The features that are being updated.
This array should be treated as read-only. To update a different set of features, create a new workflow.
Methods
| Method | Signature | Class |
|---|---|---|
| inherited | isFulfilled(): boolean | |
| inherited | isRejected(): boolean | |
| inherited | isResolved(): boolean | |
| inherited | when<TResult1 = this, TResult2 = never>(onFulfilled?: OnFulfilledCallback<this, TResult1> | null | undefined, onRejected?: OnRejectedCallback<TResult2> | null | undefined): Promise<TResult1 | TResult2> |
isFulfilled
- Signature
-
isFulfilled (): boolean
isFulfilled() may be used to verify whether the promise has been fulfilled (either resolved or rejected).
- Returns
- boolean
Whether the promise has been fulfilled (either resolved or rejected).
isRejected
- Signature
-
isRejected (): boolean
isRejected() may be used to verify whether the promise has been rejected.
- Returns
- boolean
Whether the promise has been rejected.
isResolved
- Signature
-
isResolved (): boolean
isResolved() may be used to verify whether the promise has resolved.
- Returns
- boolean
Whether the promise has resolved.
when
- Signature
-
when <TResult1 = this, TResult2 = never>(onFulfilled?: OnFulfilledCallback<this, TResult1> | null | undefined, onRejected?: OnRejectedCallback<TResult2> | null | undefined): Promise<TResult1 | TResult2>
- Since
- ArcGIS Maps SDK for JavaScript 4.6
when() may be used with an instance of this class. This method takes two input parameters: an onFulfilled function and an onRejected function.
The onFulfilled function executes when the promise resolves. The
onRejected function executes if the promise is rejected.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| onFulfilled | OnFulfilledCallback<this, TResult1> | null | undefined | The function to call when the promise resolves. | |
| onRejected | The function to execute when the promise fails. | |
- Returns
- Promise<TResult1 | TResult2>
Returns a new promise for the result of
onFulfilledthat may be used to chain additional functions.
- Example
- // Although this example uses MapView, any class instance that is a promise may use when() in the same waylet view = new MapView();view.when(function(){// This function will execute once the promise is resolved}, function(error){// This function will execute if the promise is rejected due to an error});