canAddAssociation

Checks if an UtilityAssociation can be added between the provided ArcGISFeature and the FeatureForm.feature this element is part of. Checks that all of the following conditions are met:

  • the feature belongs to the network source, asset type, and asset group defined in the provided UtilityAssociationsFilter

  • utility rules permit the use of the provided feature to create an association.

  • any expressions set on the element allow editing associations.

  • the current user has the necessary permissions.

Return

A Result containing true if an UtilityAssociation can be added to the provided ArcGISFeature, false otherwise.

Since

300.0.0

Parameters

feature

The ArcGISFeature participating in the association.

filter

The UtilityAssociationsFilter used to check the feature's role or function.

See also