import type { BatchAttributeFormState, BatchAttributeFormMode, AttributeFormSupportedLayerUnion, SubmitResult, PendingAttachmentEdits } from "@arcgis/core/widgets/BatchAttributeForm/types.js";Type definitions
BatchAttributeFormState
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The current state of the BatchAttributeForm.
- Type
- "not-loaded" | "loading" | "failed" | "loaded"
BatchAttributeFormMode
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The mode of the form.
- Type
- "single" | "batch"
AttributeFormSupportedLayerUnion
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of layers included in the BatchAttributeForm. Each layer must support feature editing and field access.
SubmitResult
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Describes the state of a single feature's attribute values at the time of a form submission.
feature
- Type
- Graphic
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The feature described by this result object.
invalidFields
- Type
- string[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The names of fields that have invalid values for this feature.
values
- Type
- Graphic["attributes"]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The updated attribute values for the feature.
attachmentEdits
- Type
- PendingAttachmentEdits[] | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Staged attachment edits for this feature.
PendingAttachmentEdits
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Attachment edits staged for a single attachment element.
adds
- Type
- AddAttachmentEdit[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Attachments staged to be added.
updates
- Type
- UpdateAttachmentEdit[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Attachments staged to be updated.
deletes
- Type
- DeleteAttachmentEdit[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Attachments staged to be deleted.
BaseAttachmentEdit
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Information about an individual attachment edit, used for adding, updating, or deleting attachments.
feature
- Type
- Graphic
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The feature, objectId or globalId of the feature associated with the attachment.
globalId
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The unique globalId of the attachment.
AddAttachmentEdit
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Information about a single attachment to be added.
- Supertypes
- BaseAttachmentEdit
UpdateAttachmentEdit
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Information about a single attachment to be updated.
- Supertypes
- BaseAttachmentEdit
id
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The unique identifier of the attachment.
DeleteAttachmentEdit
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Information about a single attachment to be deleted.
- Supertypes
- BaseAttachmentEdit
id
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The unique identifier of the attachment.
SubmitEvent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
results
- Type
- SubmitResult[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array containing a result object for each feature in the form.
valid
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether the form is valid. This is true if all features in the form have valid attribute values, and false if any feature has at least one invalid attribute value.
AttachmentsChangeEvent
- Since
- ArcGIS Maps SDK for JavaScript 5.1
feature
- Type
- Graphic
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The feature whose attachment edits were updated.
attachmentEdits
- Type
- PendingAttachmentEdits[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The current attachment edits for the updated feature.
valid
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Indicates whether the form is valid.
SelectedAttachmentIdentifier
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Selected attachment reference information.
ValueChangeEvent
- Since
- ArcGIS Maps SDK for JavaScript 5.0
features
- Type
- Graphic[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The features affected by the value change.
fieldName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The name of the field that was changed.
ValuesChangeEvent
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Describes a field value change event with per-feature change details.
data
- Type
- ValuesChangeData[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The changed values for each affected feature.
fieldName
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The field whose value was interactively changed. The event data may include changes to additional fields that were triggered by expressions.
For events where the source is expressions, this field will be undefined, no field is interactively changed in these cases.
source
- Type
- ValueChangeActor
Indicates whether the root cause of the values changing.
| Value | Description |
|---|---|
| "user" | The value changes originated from a user-initiated change. The event may include expression-driven changes that were triggered as a result of the change the user made. |
| "expression" | All value changes are the result of expressions evaluations, and the expressions were evaluated due to some condition other than a user-intiated value change. For example, the expressions were intially evaluated when the form was loaded. |
ValuesChangeData
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Describes all field changes applied to a single feature during a values-change event.
feature
- Type
- Graphic
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The feature whose values changed.
changes
- Type
- ValueChange[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The field-level changes that were applied to the feature.
ValueChange
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Describes a single field change for a feature in a values-change event.
fieldName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The name of the field that changed.
value
- Type
- FieldValue
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The updated value for the field.
AttributeFormSupportedLayerInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Configurations used for setting the layer's FormTemplate within BatchAttributeForm.
formTemplate
- Type
- FormTemplate | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A template that defines the feature's form content. Use this when setting the fields for editing.