getAttributes

suspend fun getAttributes(variableName: String, attributeNameSource: FeatureTable): Result<List<String>>

An array of attributes used in the script for a given profile variable. To fully support the wildcard expansion in the Expects statement, calculation of used attributes on a profile variable requires an object that can supply a full set of attribute names.

This function represents the best attempt to find all required attributes to evaluate the script. In some cases, an ambiguous or undetermined attribute reference may render this collection incomplete. If the script has undetermined attribute references, ArcadeEvaluator.hasUndeterminedAttributeReferences returns true.

Return

A Result containing the task object representing the asynchronous retrieval of the attributes looked up on a profile variable in the script. The value of the task result is a List object.

Since

200.1.0

Parameters

variableName

The name of the profile variable whose used attributes are required.

attributeNameSource

A FeatureTable from which a list of all attribute names for the profile variable can be obtained.

See also


suspend fun getAttributes(variableName: String, attributeNameSource: GeoElement): Result<List<String>>

An array of attributes used in the script for a given profile variable. To fully support the wildcard expansion in the Expects statement, calculation of used attributes on a profile variable requires an object that can supply a full set of attribute names.

This function represents the best attempt to find all required attributes to evaluate the script. In some cases, an ambiguous or undetermined attribute reference may render this collection incomplete. If the script has undetermined attribute references, ArcadeEvaluator.hasUndeterminedAttributeReferences returns true.

Return

A Result containing the task object representing the asynchronous retrieval of the attributes looked up on a profile variable in the script. The value of the task result is a List object.

Since

200.1.0

Parameters

variableName

The name of the profile variable whose used attributes are required.

attributeNameSource

A GeoElement from which a list of all attribute names for the profile variable can be obtained.

See also