From wiki.ginstr.com
Jump to: navigation, search
(Example)
m (formatting)
Line 10: Line 10:
 
===Load variable value into widget===
 
===Load variable value into widget===
  
;<code>[gn:act_getVariableToWidget]|[source,target]</code>
+
:;<code>[gn:act_getVariableToWidget]|[source,target]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| [[source]]
+
| <code>[[source]]</code>
 
| [[source]] from where value will be used
 
| [[source]] from where value will be used
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
 
** any [[:Category:Variables|variable]]
 
** any [[:Category:Variables|variable]]
 
|-
 
|-
| [[target]]
+
| <code>[[target]]</code>
 
| [[target]] where variable value will be stored
 
| [[target]] where variable value will be stored
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
Line 30: Line 30:
  
 
====Example====
 
====Example====
<code>@variable/employee_firstName</code> - variable<br>
+
:<code>@variable/employee_firstName</code> - variable<br>
<code>@+id/employee_firstName</code> - widget<br><br>
+
:<code>@+id/employee_firstName</code> - widget<br>
<code>[gn:act_getVariableToWidget]|[@variable/employee_firstName,@+id/employee_firstName]</code>
+
:; ⤷ <code>[gn:act_getVariableToWidget]|[@variable/employee_firstName,@+id/employee_firstName]</code>
 
<hr>
 
<hr>

Revision as of 15:52, 12 July 2017

gn:act_getVariableToWidget

Description
Action used to load value of variable from memory and stores it into target
Action returns
void

Action signatures

Load variable value into widget

[gn:act_getVariableToWidget]|[source,target]
Parameter Description
source source from where value will be used
target target where variable value will be stored

Example

@variable/employee_firstName - variable
@+id/employee_firstName - widget
[gn:act_getVariableToWidget]|[@variable/employee_firstName,@+id/employee_firstName]