Please enable JavaScript to view this site.

Version:

Navigation: Activities > Activity Reference

Cast Activity

Prev Top Next More

Description

Casts a value to a specific type. This activity does not change the input in any way. Its purpose is to improve type checking and expression suggestions in the designer.

Usage

You could use a Display Form activity to allow the user to select a point on the currently selected map with a Geometry Picker. You could then use the Cast activity to cast the selected value from an esri.Geometry to an esri.Point. Using the output of the Cast in an expression would include suggestions for the x and y properties, not just spatialReference and type.

Inputs

Type

Required

Type: String

The type to cast the input to. This can be a known type such as esri.Point or a TypeScript interface such as { id: number; name: string; location: esri.Point; }

Input

Required

Type: any

The object to be cast to a different type. The same value is used as the output.

Outputs

result

Type: The type specified by the Type input.

The value specified by the Input input.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4, VertiGIS Studio Mobile 5.7

© 2024 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 5.42 (58a5caf5)