m (formatting) |
|||
Line 10: | Line 10: | ||
===Get row values from defined columns=== | ===Get row values from defined columns=== | ||
− | ;<code>[gn:act_getRow]|[source,index;column{n};target{n}]</code> | + | :;<code>[gn:act_getRow]|[source,index;column{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]] | + | | <code>[[source]]</code> |
| [[source]] from where the row values will be retrieved | | [[source]] from where the row values will be retrieved | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
− | ** [[GnDropDown]] | + | ** <code>[[GnDropDown]]</code> |
− | ** [[Datatypes#rows|rows]] | + | ** <code>[[Datatypes#rows|rows]]</code> |
− | ** [[Datatypes#rowsColumn|rowsColumn]] | + | ** <code>[[Datatypes#rowsColumn|rowsColumn]]</code> |
|- | |- | ||
− | | index | + | | <code>index</code> |
| [[source]] from where row index will be used | | [[source]] from where row index will be used | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
** any [[source]] | ** any [[source]] | ||
|- | |- | ||
− | | columns{n} | + | | <code>columns{n}</code> |
| list of columns from where row values will be retrieved | | list of columns from where row values will be retrieved | ||
|- | |- | ||
− | | [[target]]{n} | + | | <code>[[target]]{n}</code> |
| [[target|targets]] where row values will be stored | | [[target|targets]] where row values will be stored | ||
* Valid [[target|targets]]: | * Valid [[target|targets]]: | ||
Line 40: | Line 40: | ||
====Example==== | ====Example==== | ||
− | <code>@+id/employee_allowedDivisions</code> - source<br> | + | :<code>@+id/employee_allowedDivisions</code> - source<br> |
− | <code>@variable/divisionIndex</code> - row index<br> | + | :<code>@variable/divisionIndex</code> - row index<br> |
− | <code>divisionName</code> - column name<br> | + | :<code>divisionName</code> - column name<br> |
− | <code>@variable/currentDivisionText</code> - target | + | :<code>@variable/currentDivisionText</code> - target<br> |
− | <code>[gn:act_getRow]|[@+id/employee_allowedDivisions,@variable/divisionIndex;divisionName;@variable/currentDivisionText]</code> | + | :; ⤷ <code>[gn:act_getRow]|[@+id/employee_allowedDivisions, @variable/divisionIndex;divisionName;@variable/currentDivisionText]</code> |
<hr> | <hr> |
Revision as of 19:42, 12 July 2017
gn:act_getRow
- Description
- Action used to retrieve row values from list and stores them in corresponding targets
- Action returns
- void
Action signatures
Get row values from defined columns
[gn:act_getRow]|[source,index;column{n};target{n}]
Parameter Description source
source from where the row values will be retrieved - Valid sources:
index
source from where row index will be used columns{n}
list of columns from where row values will be retrieved target{n}
targets where row values will be stored
Example
@+id/employee_allowedDivisions
- source@variable/divisionIndex
- row indexdivisionName
- column name@variable/currentDivisionText
- target
- ⤷
[gn:act_getRow]|[@+id/employee_allowedDivisions, @variable/divisionIndex;divisionName;@variable/currentDivisionText]
- ⤷