From wiki.ginstr.com
Jump to: navigation, search
(Action signatures)
m (formatting)
 
Line 27: Line 27:
  
 
====Example====
 
====Example====
 
 
=====initial value=====
 
=====initial value=====
:<code>@variable/onlyDistinctDeviceTypes</code> = <code>John,John,Mark,Mark,John</code>
+
::<code>@variable/onlyDistinctDeviceTypes</code> = <code>John,John,Mark,Mark,John</code>
  
 
=====variables.xml=====
 
=====variables.xml=====
Line 35: Line 34:
 
<variable id="onlyDistinctDeviceTypes" type="rowsColumn" defaultValue="" columnType="pointer" />
 
<variable id="onlyDistinctDeviceTypes" type="rowsColumn" defaultValue="" columnType="pointer" />
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  
 
=====screen.xml=====
 
=====screen.xml=====
Line 48: Line 46:
  
 
=====after action execution=====
 
=====after action execution=====
:<code>@variable/onlyDistinctDeviceTypes</code> = <code>John,Mark</code>
+
::<code>@variable/onlyDistinctDeviceTypes</code> = <code>John,Mark</code>
  
 
<hr>
 
<hr>

Latest revision as of 18:23, 24 January 2018

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
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