QuickCapture
Since version: 1.20
Arcade expressions can be written to calculate fields in records captured with ArcGIS QuickCapture. When the user taps a button in the project, a feature is captured and the app subsequently uses the Arcade expression to populate the value of one of the fields. Then the feature is sent to the underlying ArcGIS service. It is best practice to handle casting within the script for full control of casting behavior to Number, Date, or Text return types.
Context
This profile was created for use in the following contexts:
Profile variables
Variable Name | Type | Description |
---|---|---|
$feature | Feature | Exposes the feature's attributes for use in the calculation. |
$layer | FeatureSet | A collection of features in the same layer as $feature . |
$datastore | FeatureSetCollection | A collection of layers in the same feature service or database as $feature . |
$map | FeatureSetCollection | A collection of feature service layers in the map used by the QuickCapture project. This variable may be null. |
Function bundles
Core | Geometry | Data Access | Portal Access
Return types
Example
Save an attribute from an underlying polygon
Calculate a value from other fields