From wiki.ginstr.com
Jump to: navigation, search
(Removes row from defined rowIndex in the list)
m (formatting)
Line 10: Line 10:
 
===Removes row based on column values===
 
===Removes row based on column values===
  
;<code>[gn:act_removeRow]|[target;column{n};source{n}]</code>
+
:;<code>[gn:act_removeRow]|[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]] from where the row will be removed
 
| [[target]] from where the row will be removed
 
* 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 value from [[source]] will be compared  
 
| [[configuration.xml#Column|column]] where the value from [[source]] will be compared  
 
|-
 
|-
| [[source]]{n}
+
| <code>[[source]]{n}</code>
 
| [[source]] from which the value will be compared with [[configuration.xml#Column|column]] value and if the row matches, it will be removed
 
| [[source]] from which the value will be compared with [[configuration.xml#Column|column]] value and if the row matches, it will be removed
 
* 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<br><br>
+
:<code>@variable/supervisorFirstName, @variable/supervisorEmail</code> - source<br>
<code>[gn:act_removeRow]|[@variable/newEmailDTVariable;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]</code>
+
:; ⤷ <code>[gn:act_removeRow]|[@variable/newEmailDTVariable;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]</code>
 
<hr>
 
<hr>
  
 
===Removes row from defined <code>rowIndex</code> in the list===
 
===Removes row from defined <code>rowIndex</code> in the list===
 
   
 
   
;<code>[gn:act_removeRow]|[target;rowIndex]</code>
+
:;<code>[gn:act_removeRow]|[target;rowIndex]</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]] from where the row will be removed
 
| [[target]] from where the row will be removed
 
* 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>
 
|-
 
|-
| rowIndex
+
| <code>rowIndex</code>
 
| <div style="text-align: right;">'''optional'''</div>
 
| <div style="text-align: right;">'''optional'''</div>
 
[[source]] which represents the row index in [[target|target]] where the row will be removed
 
[[source]] which represents the row index in [[target|target]] where the row will be removed
  
 
* 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><br>
+
:<code>@variable/rowIndex</code> - row index<br>
<code>[gn:act_removeRow]|[@variable/newEmailDTVariable;@variable/rowIndex]</code>
+
:; ⤷ <code>[gn:act_removeRow]|[@variable/newEmailDTVariable;@variable/rowIndex]</code>
 
<hr>
 
<hr>

Revision as of 16:26, 12 July 2017

gn:act_removeRow

Description
Removes row from list typed widget or variable
Action returns
void

Action signatures

Removes row based on column values

[gn:act_removeRow]|[target;column{n};source{n}]
Parameter Description
target target from where the row will be removed
column{n} column where the value from source will be compared
source{n} source from which the value will be compared with column value and if the row matches, it will be removed

Example

@variable/newEmailDTVariable - target
name, email - column names
@variable/supervisorFirstName, @variable/supervisorEmail - source
[gn:act_removeRow]|[@variable/newEmailDTVariable;name,email;@variable/supervisorFirstName,@variable/supervisorEmail]

Removes row from defined rowIndex in the list

[gn:act_removeRow]|[target;rowIndex]
Parameter Description
target target from where the row will be removed
rowIndex
optional

source which represents the row index in target where the row will be removed

Example

@variable/newEmailDTVariable - target
@variable/rowIndex - row index
[gn:act_removeRow]|[@variable/newEmailDTVariable;@variable/rowIndex]