gn:act_saveToVariable
- Description
- Action used to store value of variable in
variables.xml
file from target. Value is stored as serialized JSON object. - Values that are stored in
variables.xml
are loaded intovariables
on startup of the ginstr application. - This is NOT used to set the variable value while in app instance.
- To set variable value for usage in the same app instance,
gn:act_setVariable
should be used.
- Action returns
- void
Action signatures
Save to variable
[gn:act_saveToVariable]|[target,source]
Parameter Description target
target for which the value from source will be stored permanently source
source from where the value will be stored in target
Example
@variable/siteSelection
- variable@+id/site
- source
- ⤷
[gn:act_saveToVariable]|[@variable/siteSelection,@+id/site]
- ⤷