m (formatting) |
|||
Line 10: | Line 10: | ||
===Inserts new row as the last element in the list=== | ===Inserts new row as the last element in the list=== | ||
− | ;<code>[gn:act_addRow]|[target;column{n};source{n}]</code> | + | :;<code>[gn:act_addRow]|[target;column{n};source{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 | ||
|- | |- | ||
− | | [[target]] | + | | <code>[[target]]</code> |
| [[target]] where the row will be stored | | [[target]] where the row will be stored | ||
* Valid [[target|targets]]: | * Valid [[target|targets]]: | ||
− | ** [[Datatypes#rows|rows]] | + | ** <code>[[Datatypes#rows|rows]]</code> |
+ | ** <code>[[Datatypes#rowsColumn|rowsColumn]]</code> | ||
+ | ** <code>[[Datatypes#email|email]]</code> | ||
|- | |- | ||
− | | [[configuration.xml#Column|column]]{n} | + | | <code>[[configuration.xml#Column|column]]{n}</code> |
| [[configuration.xml#Column|column]] where the [[source]] value will be stored | | [[configuration.xml#Column|column]] where the [[source]] value will be stored | ||
|- | |- | ||
− | | [[source]]{n} | + | | <code>[[source]]{n}</code> |
| [[source]] from which value for [[configuration.xml#Column|column]] will be taken | | [[source]] from which value for [[configuration.xml#Column|column]] will be taken | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
− | ** [[Datatypes#text|text]] | + | ** <code>[[Datatypes#text|text]]</code> |
|- | |- | ||
|} | |} | ||
====Example==== | ====Example==== | ||
− | <code>@variable/newEmailDTVariable</code> - target<br> | + | :<code>@variable/newEmailDTVariable</code> - target<br> |
− | <code>name, email</code> - column names<br> | + | :<code>name, email</code> - column names<br> |
− | <code>@variable/supervisorFirstName, @variable/supervisorEmail</code> - source | + | :<code>@variable/supervisorFirstName, @variable/supervisorEmail</code> - source<br> |
− | <code>[gn:act_addRow]|[@variable/newEmailDTVariable;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]</code> | + | :; ⤷ <code>[gn:act_addRow]|[@variable/newEmailDTVariable;name, email;@variable/supervisorFirstName, @variable/supervisorEmail]</code> |
<hr> | <hr> | ||
===Inserts new row at defined <code>rowIndex</code> in the list=== | ===Inserts new row at defined <code>rowIndex</code> in the list=== | ||
− | ;<code>[gn:act_addRow]|[target,rowIndex;column{n};source{n}]</code> | + | :;<code>[gn:act_addRow]|[target,rowIndex;column{n};source{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 | ||
|- | |- | ||
− | | [[target]] | + | | <code>[[target]]</code> |
| [[target]] where the row will be stored | | [[target]] where the row will be stored | ||
* Valid [[target|targets]]: | * Valid [[target|targets]]: | ||
− | ** [[Datatypes#rows|rows]] | + | ** <code>[[Datatypes#rows|rows]]</code> |
− | ** [[Datatypes#rowsColumn|rowsColumn]] | + | ** <code>[[Datatypes#rowsColumn|rowsColumn]]</code> |
− | ** [[Datatypes#email|email]] | + | ** <code>[[Datatypes#email|email]]</code> |
|- | |- | ||
− | | [[configuration.xml#Column|column]]{n} | + | | <code>[[configuration.xml#Column|column]]{n}</code> |
| [[configuration.xml#Column|column]] where the [[source]] value will be stored | | [[configuration.xml#Column|column]] where the [[source]] value will be stored | ||
|- | |- | ||
− | | [[source]]{n} | + | | <code>[[source]]{n}</code> |
| [[source]] from which value for [[configuration.xml#Column|column]] will be taken | | [[source]] from which value for [[configuration.xml#Column|column]] will be taken | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
− | ** [[Datatypes#text|text]] | + | ** <code>[[Datatypes#text|text]]</code> |
|- | |- | ||
− | | rowIndex | + | | <code>rowIndex</code> |
− | | <div style="text-align: right;">'''optional'''</div> | + | | <div style="text-align: right; background-color: #e5e5e5; padding-right: 7px">'''optional'''</div> |
[[source]] which represents the row index in [[target|target]] where new row will be stored | [[source]] which represents the row index in [[target|target]] where new row will be stored | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
− | ** [[Datatypes#number|number]] | + | ** <code>[[Datatypes#number|number]]</code> |
|- | |- | ||
|} | |} | ||
====Example==== | ====Example==== | ||
− | <code>@variable/newEmailDTVariable</code> - target<br> | + | :<code>@variable/newEmailDTVariable</code> - target<br> |
− | <code>@variable/rowIndex</code> - row index<br> | + | :<code>@variable/rowIndex</code> - row index<br> |
− | <code>name, email</code> - column names<br> | + | :<code>name, email</code> - column names<br> |
− | <code>@variable/supervisorFirstName, @variable/supervisorEmail</code> - source | + | :<code>@variable/supervisorFirstName, @variable/supervisorEmail</code> - source<br> |
− | <code>[gn:act_addRow]|[@variable/newEmailDTVariable,@variable/rowIndex;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]</code> | + | :; ⤷ <code>[gn:act_addRow]|[@variable/newEmailDTVariable, @variable/rowIndex;name, email;@variable/supervisorFirstName, @variable/supervisorEmail]</code> |
<hr> | <hr> |
Revision as of 16:24, 12 July 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 - Valid targets:
column{n}
column where the source value will be stored source{n}
source from which value for column will be taken
Example
@variable/newEmailDTVariable
- targetname, 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 - Valid targets:
column{n}
column where the source value will be stored source{n}
source from which value for column will be taken rowIndex
optionalsource which represents the row index in target where new row will be stored
Example
@variable/newEmailDTVariable
- target@variable/rowIndex
- row indexname, email
- column names@variable/supervisorFirstName, @variable/supervisorEmail
- source
- ⤷
[gn:act_addRow]|[@variable/newEmailDTVariable, @variable/rowIndex;name, email;@variable/supervisorFirstName, @variable/supervisorEmail]
- ⤷