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.
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.
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. |
result |
Type: The type specified by the Type input. The value specified by the Input input. |
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
This activity works when the device has intermittent connectivity to the network.
Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4, VertiGIS Studio Mobile 5.7