(→Action signatures) |
|||
Line 7: | Line 7: | ||
==Action signatures== | ==Action signatures== | ||
− | :;<code>[gn:act_filterDistinctRows]|[target]</code> | + | :;<code>[gn:act_filterDistinctRows]|[target;columns{n}]</code> |
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;" | :{| class="wikitable sortable" style="font-size: 85%; text-align: left;" | ||
Line 19: | Line 19: | ||
:*<code>[[Datatypes#rows|rows]]</code> | :*<code>[[Datatypes#rows|rows]]</code> | ||
:*<code>[[Datatypes#rowsColumn|rowsColumn]]</code> | :*<code>[[Datatypes#rowsColumn|rowsColumn]]</code> | ||
+ | |- | ||
+ | | <code>column</code>{n} | ||
+ | | used if [[target]] is [[Datatypes#rows|rows]] to filter rows only by defined column names | ||
+ | * Can be: | ||
+ | :*<code>hardcoded</code> | ||
|} | |} | ||
Revision as of 15:43, 26 September 2017
gn:act_filterDistinctRows
- Description
- Action used to remove duplicate rows from target
- Action returns
- void
Action signatures
[gn:act_filterDistinctRows]|[target;columns{n}]
Parameter Description target
target from where duplicate rows will be removed - Valid targets:
column
{n}used if target is rows to filter rows only by defined column names - Can be:
hardcoded
Example
initial value
@variable/onlyDistinctDeviceTypes
=John,John,Mark,Mark,John
variables.xml
<variable id="onlyDistinctDeviceTypes" type="rowsColumn" defaultValue="" columnType="pointer" />
screen.xml
<FrameLayout android:id="@+id/exampleFrame" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" gn:act_set="[gn:act_filterDistinctRows]|[@variable/onlyDistinctDeviceTypes]" />
after action execution
@variable/onlyDistinctDeviceTypes
=John,Mark