Allow Geometry Picker value setting via workflow
AnsweredIn GVH, it was possible to fill in the value of a Geometry Picker (form element) via a workflow. This possibility apparently exist in Studio Web (Add value to geometry picker – VertiGIS)
It would be interesting for it to also exist for Vertigis Studio Go.
Note: having all form elements setting (and re-setting) possible via workflow for Vertigis Studio Go would be quite good.
-
VertiGIS Studio Support any updates on this? 🙏
2 -
Hi Cecile Coutelier and Sander Broekaert, I am Jack from the Mobile team here to answer your inquiry. Thank you for helping contribute ideas to Mobile, and my apologies for the time it took to get back to you.
I am glad to inform you that this idea has been accepted and filed in our backlog. We will need to perform some discussion first before we can go ahead with development. I've enabled changelog on the item; please use number “318893” to look it up and check its status at https://changelogs.vertigis.com/.
0 -
❤️
0 -
Hi Cecile Coutelier, Sander Broekaert, and other that have been waiting for this to be released. I am pleased to inform you all that this has been developed and added to Go! This will be included in the 5.37 release, which is going out in the next month or so.
Please note that setting the geometry picker's value will replace all currently set values, and there is a slightly different method to setting the first value vs setting the subsequent values:
-
Setting the geometry picker's value is equivalent to setting its first point, and it is done using the following code and replacing
$mapExtent2.center
with the desired geometry point:$form1.state.geometryPicker1.value = { "Format": "point", "Geometry": [$mapExtent2.center], "RefValueType": "geometry" };
- Setting subsequent point is done using the following process:
-
Get the array of geometry items in the picker and append the new geometry to the array. Similar to the previous step, replace
$mapExtent7.center
with the desired geometry point:=function (){ var arr = $form1.state.geometryPicker1.value.geometry; var newArr = arr.concat($mapExtent7.center); return newArr; }()
- Set the array as the picker's value using the Set Form Element Property activity:
-
These two paths can be combined using an If activity that would check the number of elements in the geometry picker before deciding to set its value directly or manipulate its array and set the value.
As always, please feel free to reach out with any concerns or questions you may have :)
0 -
-
Thank you Jack Basha !
0 -
Anytime! :)
0
Please sign in to leave a comment.
Comments
6 comments