From wiki.ginstr.com
Jump to: navigation, search
(Example)
Line 22: Line 22:
 
** [[Datatypes#rows|rows]], [[Datatypes#rowsColumn|rowsColumn]], [[Datatypes#email|email]]
 
** [[Datatypes#rows|rows]], [[Datatypes#rowsColumn|rowsColumn]], [[Datatypes#email|email]]
 
|-
 
|-
| [[column]]{n}
+
| [[configuration.xml#Column|column]]{n}
| [[column]] where the [[source]] value will be stored  
+
| [[configuration.xml#Column|column]] where the [[source]] value will be stored  
 
|-
 
|-
 
| [[source]]{n}
 
| [[source]]{n}
| [[source]] from which value for [[column]] will be taken
+
| [[source]] from which value for [[configuration.xml#Column|column]] will be taken
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
** [[DtText]]  
+
** [[Datatypes#text|text]]
 
|-
 
|-
 
|}
 
|}
Line 55: Line 55:
 
** [[Datatypes#email|email]]
 
** [[Datatypes#email|email]]
 
|-
 
|-
| [[column]]{n}
+
| [[configuration.xml#Column|column]]{n}
| [[column]] where the [[source]] value will be stored  
+
| [[configuration.xml#Column|column]] where the [[source]] value will be stored  
 
|-
 
|-
 
| [[source]]{n}
 
| [[source]]{n}
| [[source]] from which value for [[column]] will be taken
+
| [[source]] from which value for [[configuration.xml#Column|column]] will be taken
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
** [[DtText]]
+
** [[Datatypes#text|text]]
 
|-
 
|-
 
| rowIndex
 
| rowIndex
Line 68: Line 68:
  
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
** [[DtNumber]]
+
** [[Datatypes#number|number]]
 
|-
 
|-
 
|}
 
|}

Revision as of 13:17, 31 March 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 - target
name, email - column names
@variable/supervisorFirstName, @variable/supervisorEmail - source

[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 - target
@variable/rowIndex - row index
name, email - column names
@variable/supervisorFirstName, @variable/supervisorEmail - source

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