From wiki.ginstr.com
Jump to: navigation, search
(Created page with "<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> <span STYLE="font-size: xx-large"><code>gn:act_getVariables</code></span> Category:Action_Library ;...")
 
m (formatting)
 
(2 intermediate revisions by one other user not shown)
Line 10: Line 10:
 
===Copy variable values to targets===
 
===Copy variable values to targets===
  
;<code>[gn:act_getVariables]|[source{n};target{n}]</code>
+
:;<code>[gn:act_getVariables]|[source{n};target{n}]</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]]{n}
+
| <code>[[source]]{n}</code>
 
| [[Variables|variable]] from where the value will be copied
 
| [[Variables|variable]] from where the value will be copied
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
 
** [[Variables|variable]]
 
** [[Variables|variable]]
 
|-
 
|-
| [[target]]{n}
+
| <code>[[target]]{n}</code>
| [[widget]] where the variable value will be stored
+
| [[:Category:Widgets|widget]] where the variable value will be stored
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
** [[widget]]
+
** [[:Category:Widgets|widget]]
 
|-
 
|-
 
|}
 
|}
  
 
====Example====
 
====Example====
<code>@variable/userFirstName,@variable/userLastName</code> - [[source]]<br>
+
:<code>@variable/userFirstName,@variable/userLastName</code> - source<br>
<code>@+id/user_firstName,@+id/user_lastName</code> - [[target]]<br><br>
+
:<code>@+id/user_firstName,@+id/user_lastName</code> - target<br>
<code>[gn:act_getVariables]|[@variable/userFirstName,@variable/userLastName;@+id/user_firstName,@+id/user_lastName]</code>
+
:; ⤷ <code>[gn:act_getVariables]|[@variable/userFirstName, @variable/userLastName;@+id/user_firstName, @+id/user_lastName]</code>
 
<hr>
 
<hr>

Latest revision as of 20:40, 12 July 2017

gn:act_getVariables

Description
Action used to copy variable values in corresponding targets
Action returns
void

Action signatures

Copy variable values to targets

[gn:act_getVariables]|[source{n};target{n}]
Parameter Description
source{n} variable from where the value will be copied
target{n} widget where the variable value will be stored

Example

@variable/userFirstName,@variable/userLastName - source
@+id/user_firstName,@+id/user_lastName - target
[gn:act_getVariables]|[@variable/userFirstName, @variable/userLastName;@+id/user_firstName, @+id/user_lastName]