Skip to content
import RelationshipInput from "@arcgis/core/widgets/FeatureForm/RelationshipInput.js";
Inheritance:
RelationshipInputEditableInput<RelationshipElement>InputBaseAccessor
Since
ArcGIS Maps SDK for JavaScript 4.27

This is a read-only support class that represents a relationship input field. It is used by the FeatureForm widget. The values are computed internally by the FeatureFormViewModel.

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
declaredClass
readonly inherited
displayCount
readonly
displayType
readonly
"list"
editable
readonly
editType
inherited
group
readonly
orderByFields
readonly
type
readonly
"relationship"
updating
readonly

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

displayCount

readonly Property
Type
number

A numeric value indicating the maximum number of related features to display in the list of related records. If no value is specified, the Show all button will be available to display all related records and the associated displayCount defaults to 3. If the total amount of features is greater than the displayCount, a Show all button displays.

Default value
3

displayType

readonly Property
Type
"list"

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

readonly Property
Type
boolean

Indicates whether the input is editable.

editType

inherited Property
Type
EditType
Inherited from: EditableInput

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"

group

readonly Property
Type
GroupInput | null | undefined

The group containing the relationship input.

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.

type

readonly Property
Type
"relationship"

The type of input.

updating

readonly Property
Type
boolean

Indicates whether the form is currently updating.