From wiki.ginstr.com
Jump to: navigation, search
(Inserts new row at defined rowIndex in the list)
(Example)
Line 33: Line 33:
  
 
====Example====
 
====Example====
<code>@variable/newEmailDTVariable</code> - [[Variables#Variable_definition|variable]] [[Datatypes#email|email]]
 
 
<code>name, email</code> - internal [[DtEmailAddress|email]] DT columns
 
 
<code>@variable/supervisorFirstName, @variable/supervisorEmail</code> - [[Variables#Variable_definition|variable]] [[Datatypes#text|text]]
 
 
 
<code>
 
<code>
[gn:act_addRow]|[@variable/newEmailDTVariable;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]
+
@variable/newEmailDTVariable - [[Variables#Variable_definition|variable]] [[Datatypes#email|email]]
 +
name, email - internal [[DtEmailAddress|email]] DT columns
 +
@variable/supervisorFirstName, @variable/supervisorEmail - [[Variables#Variable_definition|variable]] [[Datatypes#text|text]]
 +
[gn:act_addRow]|[@variable/newEmailDTVariable;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]
 
</code>
 
</code>
 
  
 
===Inserts new row at defined <code>rowIndex</code> in the list===
 
===Inserts new row at defined <code>rowIndex</code> in the list===

Revision as of 14:02, 28 February 2017

gn:act_addRow

Description
Creates new row in list typed widget or variable, with data from sources
Action returns
void

Action signatures

Inserts new row as the last element in the list

[gn:act_addRow]|[target;column{n};source{n}]
Parameter Description
target target where the row will be stored
column{n} column where the source value will be stored
source{n} source from which value for column will be taken

Example

@variable/newEmailDTVariable - variable email
name, email - internal email DT columns
@variable/supervisorFirstName, @variable/supervisorEmail - variable text
[gn:act_addRow]|[@variable/newEmailDTVariable;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]

Inserts new row at defined rowIndex in the list

[gn:act_addRow]|[target,rowIndex;column{n};source{n}]
Parameter Description
target target where the row will be stored
column{n} column where the source value will be stored
source{n} source from which value for column will be taken
rowIndex
optional

source which represents the row index in target where new row will be stored

Example

@variable/newEmailDTVariable - variable email

@variable/rowIndex - variable number

name, email - internal email DT columns

@variable/supervisorFirstName, @variable/supervisorEmail - variable text

[gn:act_addRow]|[@variable/newEmailDTVariable,@variable/rowIndex;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]