How to make the variable saved by CreateValue activity accessible to other form elements. Or other way to make "global variables"?
Within a geometryPicker's onchange event, I am saving a variable via the CreateValue activity, then, later in the form, in a datetimePicker's onchange event, I am trying to access that variable. Geocortex Workflow 5 is saying that the variable is undefined.
software versions
Geocortex Essentials: 4.9.1.37
HTML5: 2.10.1.492
-
Hi Thomas,
The solution here would be to make the Create Value output (variable) exist before the DisplayForm starts, and then just change its value inside the workflow event. To do that:
- Cut/Paste your Create Value activity from where it is in the change event to somewhere before the DisplayForm activity
- Where the Create Value activity used to be inside the change event, add a Set Property activity
- Configure the Set Property activity to change the result output property from the Create Value Activity.
Example configuration for Set Property would be something like
Object: =$value1
Property Name: result
Property Value: (whatever value you were setting previously)
Hope that helps!
1
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar