From wiki.ginstr.com
Revision as of 13:03, 12 July 2016 by Mark (talk | contribs) (Mark moved page Gn:act setVariable to gn:act setVariable)
Jump to: navigation, search

gn:act_setVariable

gn:act_setVariable loads value from target and stores it to variable.

Can be used on widgets
any widget
Event trigger for action
no event, must be used in action set or conditional action.
Can be used as
a no event action
Additional required attributes on bound widget
none

Action signature

[gn:act_setVariable]|[@variable/variableId,target]

Value field content

@variable/variableId
id of the variable which value will be stored to
target
id of widget from which value needs to be taken

It is possible to take value stored in target and set it to variable. At present following ways to set variable are possible from either widgets or variables.

widgets

From widgets “@+id/widgetId“ to variable supported:

variables

  • from @variable/someVariableId to identical type variable
i.e. from variable “text” to variable “text”