import RelationshipElementInput from "@arcgis/core/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js";
Inheritance
RelationshipElementInputEditableInput<any>InputBaseAccessor
Since
ArcGIS Maps SDK for JavaScript 5.1

This is a read-only support class that represents a relationship element in a BatchAttributeForm.

See also

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
readonly inherited
readonly inherited
readonly
readonly
readonly inherited
readonly inherited
readonly inherited
readonly
readonly
readonly inherited
readonly
readonly inherited
readonly
readonly
readonly
"relationship"
readonly
readonly inherited
readonly inherited

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

description

readonlyinherited Property
Type
string | null | undefined
Inherited from: InputBase

The input's description.

displayCount

readonly Property
Type
number

A numeric value indicating the maximum number of related features to display in the list of related records. If the total amount of features is greater than the displayCount, a Show all button displays.

Default value
3

displayType

readonly Property
Type
string

A string value indicating how to display related records within the relationship content. Currently, list is the only supported value.

ValueDescription
listShows a list of related records from the specified relationship.
Default value
"list"

editable

readonlyinherited Property
Type
boolean
Inherited from: EditableInput

Indicates if the input is editable.

editType

readonlyinherited Property
Type
EditType
Inherited from: EditableInput

The type of edit operation the form is being used for. This can influence whether a field is editable or not (e.g., the layer only allows certain edit operations)

This is also the value that will be set for the Arcade variable $editcontext.editType in the Arcade context used to evaluate form expressions.

Accepted values are "INSERT", "UPDATE", "DELETE", and "NA".

For FieldInputs with value expressions, this property is also used in determining whether or not the value expressions should be applied. Per the Web Map Specification, value expressions are ignored if the associated layer field is not editable. Determining whether the layer field is editable must consider whether the specific type of edit being attempted is allowed. For example, if a layer has the supportsAdd capability but does not have the supportsUpdate capability, then the value expression will be applied if editType is INSERT but ignored if editType is UPDATE.

For the purposes of determining whether or not the layer allows the current edit type, a value of "NA" is always considered allowed.

Default value
"NA"

existsInAllLayers

readonlyinherited Property
Type
boolean
Inherited from: InputBase

Indicates whether the input pertains to all the features in the BatchAttributeForm in which the input belongs.

Default value
true

feature

readonly Property
Type
Graphic | null | undefined

The single feature associated with this relationship element.

See also

group

readonly Property
Type
GroupInput | null

The group containing the relationship element input.

label

readonlyinherited Property
Type
string | null | undefined
Inherited from: InputBase

The input's label.

layer

readonly Property
Type
AttributeFormSupportedLayerUnion | null | undefined

Identifies the single feature layer associated with this relationship element. The layer must support feature editing and field access.

The following layer types are supported:

See also

layers

readonlyinherited Property
Type
AttributeFormSupportedLayerUnion[]
Inherited from: InputBase

An array of layers included in the BatchAttributeForm. Each layer must support feature editing and field access.

The following layer types are supported:

See also

orderByFields

readonly Property
Type
RelatedRecordsInfoFieldOrder[] | null | undefined

An array of RelatedRecordsInfoFieldOrder objects indicating the field display order for the related records and whether they should be sorted in ascending asc or descending desc order.

relationshipId

readonly Property
Type
number

The numeric id value for the defined relationship. This value can be found on the service itself or on the service's relationships resource if supportsRelationshipResource is true.

type

readonly Property
Type
"relationship"

The type of input.

updating

readonly Property
Type
boolean

Indicates whether the form is currently updating.

valid

readonlyinherited Property
Type
boolean
Inherited from: EditableInput

Indicates whether the input currently has valid user input.

visible

readonlyinherited Property
Type
boolean
Inherited from: InputBase

Indicates whether the input is visible.