UtilityAssociationsFormElement

A form element that represents the utility network associations within the form.

Since

200.7.0

Properties

Link copied to clipboard

A collection of filters that define which associations are displayed.

Link copied to clipboard

The collection of results from the UtilityAssociationsFormElement.fetchAssociationsFilterResults method. The collection of UtilityAssociationsFilterResult objects groups the fetch results first by their UtilityAssociationsFilter and then groups the UtilityAssociation objects by the layer or table that contains them within the ArcGISMap.

Link copied to clipboard
val isEditable: StateFlow<Boolean>

True if the utility associations form element is editable, false otherwise. This property can be modified by the editable expression, which can be set during Feature Form authoring.

Inherited properties

Link copied to clipboard

A detailed description of the element.

Link copied to clipboard
val isVisible: StateFlow<Boolean>

The form element's visibility. This property can be modified by the visibility expression.

Link copied to clipboard

A descriptive label that appears with the element. If not supplied, a FieldFormElement is labeled with the alias property of the associated field.

Functions

Link copied to clipboard

Adds an association between the provided feature and the FeatureForm.feature that this element is part of. This method can be used to create an association of any type. Default values will be used for any properties of the association such as UtilityAssociation.isContainmentVisible, UtilityAssociation.fractionAlongEdge.

suspend fun addAssociation(feature: ArcGISFeature, filter: UtilityAssociationsFilter, isContainmentVisible: Boolean): Result<UtilityAssociationResult>

Adds an association between the provided feature and the FeatureForm.feature that this element is part of, along with the UtilityAssociation.isContainmentVisible value. This method is typically used when creating an UtilityAssociationType.Containment association.

suspend fun addAssociation(feature: ArcGISFeature, filter: UtilityAssociationsFilter, fractionAlongEdge: Double, terminal: UtilityTerminal? = null): Result<UtilityAssociationResult>

Adds an association between the provided feature and the FeatureForm.feature that this element is part of, along with the fractionAlongEdge and terminal value, if provided. This method is typically used when creating an UtilityAssociationType.Connectivity association between a junction and an edge and the junction feature may have an associated UtilityTerminal value.

suspend fun addAssociation(feature: ArcGISFeature, featureTerminal: UtilityTerminal?, filter: UtilityAssociationsFilter, currentFeatureTerminal: UtilityTerminal?): Result<UtilityAssociationResult>

Adds an association between the provided feature and the FeatureForm.feature that this element is part of, along with the UtilityTerminal values. This method is typically used when creating an UtilityAssociationType.Connectivity association between two junction features in the UtilityNetwork.

Link copied to clipboard

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:

Link copied to clipboard

Deletes an association from the UtilityNetwork. UtilityAssociationsFormElement.fetchAssociationsFilterResults should be called after a successful deletion to refresh the list of filter results.

Link copied to clipboard

Gets the UtilityAssociationFeatureSource objects from the UtilityNetwork. Checks the utility rules and the filter definition to find all UtilityAssociationFeatureSource objects that can be used to create an association. Use UtilityAssociationFeatureSource.queryFeatures to get the actual features from an UtilityAssociationFeatureSource.

Link copied to clipboard

Retrieves options for creating an association with a specified feature in the utility network. This method evaluates the provided feature and returns a set of options that can be used to define an association. The options include details about valid configurations and constraints for the association.

Inherited functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun toJson(): String

Convert an object to JSON string.