relateFeature

fun relateFeature(feature: ArcGISFeature, relationshipInfo: RelationshipInfo? = null): Result<Unit>

Sets up a relationship between this feature and the provided feature based on the given relationshipInfo if it is not null.

If this relationship is keyed on an Object ID or Global ID, and the origin feature in this call has been created locally, you must first call ServiceFeatureTable.applyEdits() and ArcGISFeature.refresh to obtain the new Object ID and Global ID generated by the service. If this is not done, then the destination feature will end up referring to an outdated ID and will not be considered related.

Since

200.1.0

Parameters

feature

the feature to which this feature should be related

relationshipInfo

the relationship info to use when relating the two features

Throws

GeodatabaseException

if the Geodatabase is closed.

if no RelationshipInfo exists between this feature's table and the provided feature's table.

if this ArcGISFeature has no associated ArcGISFeatureTable.