Cast Activity
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 JavaScript interface such as |
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 The value specified by the |
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