Hello,
I am creating a trace tracking app with QuickCapture. Actually, it is one Start/Stop button which collecting the distance. But I need to have total tracked distance (like a car mileage).
What I need to do, when I press the Start button automatically add distance variable from my last trip to the designated field. After this, I need to sum mileage of trace with current trace distance in other designated field. Is it possible to do it in QuickCapture?
Solved! Go to Solution.
Hi Giedrius
A value calculated for one feature can't be passed to another feature in QuickCapture. But I'm not sure you really need to do this anyway.
If you capture a line for each trip using the start/stop button, and each line has a field updated using one of the length variables, you could summarise the length for all the captured lines in your feature layer. Even, better, if you added a field and captured a cost code or car license (for example), you could instead summarise the lengths for subsets of the lines in the layer. For example you could use a project user input to make the user to enter their car registration number when they opened the project. You would then summarise the lines using the registration field.
Once your data is submitted form QuickCapture, you can summarise the length for a specific field in ArcGIS Online using Arcade expressions. These can be used to either write the summary value to a specific field, or dynamically update the value of a webmap popup. Here is some information on the sum function that you could use: https://developers.arcgis.com/arcade/function-reference/math_functions/#sum
Thanks
John
Hi Giedrius
A value calculated for one feature can't be passed to another feature in QuickCapture. But I'm not sure you really need to do this anyway.
If you capture a line for each trip using the start/stop button, and each line has a field updated using one of the length variables, you could summarise the length for all the captured lines in your feature layer. Even, better, if you added a field and captured a cost code or car license (for example), you could instead summarise the lengths for subsets of the lines in the layer. For example you could use a project user input to make the user to enter their car registration number when they opened the project. You would then summarise the lines using the registration field.
Once your data is submitted form QuickCapture, you can summarise the length for a specific field in ArcGIS Online using Arcade expressions. These can be used to either write the summary value to a specific field, or dynamically update the value of a webmap popup. Here is some information on the sum function that you could use: https://developers.arcgis.com/arcade/function-reference/math_functions/#sum
Thanks
John