Skip To ContentArcGIS for DevelopersSign In Dashboard

Relationship

require(["esri/layers/support/Relationship"], function(Relationship) { /* code goes here */ });
Class: esri/layers/support/Relationship
Inheritance: Relationship Accessor
Since: ArcGIS API for JavaScript 4.7

Describes a layer's relationship with another layer or table. These relationships are listed in the ArcGIS Services directory as described in the REST API documentation.

See also:

Constructors

new Relationship(properties)
Parameter:
properties Object
optional

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

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
NameTypeSummaryClass
String

The cardinality which specifies the number of objects in the origin FeatureLayer related to the number of objects in the destination FeatureLayer.

more details
more detailsRelationship
String

The name of the class.

more details
more detailsAccessor
Number

The unique ID for the relationship.

more details
more detailsRelationship
String

The field used to establish the relate within the FeatureLayer.

more details
more detailsRelationship
String

The name of the relationship.

more details
more detailsRelationship
Number

The unique ID of the related FeatureLayer.

more details
more detailsRelationship

Property Details

cardinality String

The cardinality which specifies the number of objects in the origin FeatureLayer related to the number of objects in the destination FeatureLayer. Please see the Desktop help for additional information on cardinality.

Possible values: one-to-one | one-to-many | many-to-many

declaredClass Stringreadonly inherited

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

The unique ID for the relationship. These ids for the relationships the FeatureLayer participates in are listed in the ArcGIS Services directory.

keyField String

The field used to establish the relate within the FeatureLayer.

name String

The name of the relationship.

relatedTableId Number

The unique ID of the related FeatureLayer.

API Reference search results

NameTypeModule
Loading...