m (Mark moved page Gn:act convertTimestampToFormat to gn:act convertTimestampToFormat) |
|||
Line 1: | Line 1: | ||
+ | <div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> | ||
+ | <span STYLE="font-size: xx-large"><code>gn:act_setSelectedItem</code></span> | ||
+ | [[Category:Action_Library]] | ||
+ | |||
+ | ;Description: Action used to select dropdown item <code>[[GnDropDown]]</code> | ||
+ | |||
+ | ;Action returns: void | ||
+ | ==Action signatures== | ||
+ | |||
+ | === === | ||
+ | |||
+ | ;<code> </code> | ||
+ | |||
+ | {| class="wikitable sortable" style="font-size: 85%; text-align: left;" | ||
+ | |- | ||
+ | ! scope="col" | Parameter | ||
+ | ! scope="col" | Description | ||
+ | |- | ||
+ | | [[source|parameterSource]] | ||
+ | | [[source]] from where the while action is using value as expression parameter | ||
+ | * Valid [[source|sources]]: | ||
+ | ** any [[source]] | ||
+ | |- | ||
+ | | [[source|comparedSource]] | ||
+ | | [[source]] from where the while action is using value as expression comparsion parameter | ||
+ | * Valid [[source|sources]]: | ||
+ | ** any [[source]] | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | ====Example==== | ||
+ | <code></code> - <br> | ||
+ | <code></code> - <br><br> | ||
+ | <code></code> | ||
+ | <hr> | ||
+ | |||
+ | |||
+ | |||
+ | |||
<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> | <div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> | ||
<span STYLE="font-size: xx-large"><code>gn:act_convertTimestampToFormat</code></span> | <span STYLE="font-size: xx-large"><code>gn:act_convertTimestampToFormat</code></span> |
Revision as of 13:58, 3 March 2017
gn:act_setSelectedItem
- Description
- Action used to select dropdown item
GnDropDown
- Action returns
- void
Action signatures
Parameter | Description |
---|---|
parameterSource | source from where the while action is using value as expression parameter |
comparedSource | source from where the while action is using value as expression comparsion parameter |
Example
-
-
gn:act_convertTimestampToFormat
gn:act_convertTimestampToFormat
is used to convert timestamp (numerical value) from certain widget to human readable format.
- Can be used on widgets
- any widget
- Event trigger for action
- no event, must be used in action set or conditional action.
- Can be used as
- a no event action
- Additional required attributes on bound widget
- none
- Additional required attributes on other widgets
- none
Action signature
[gn:act_convertTimestampToFormat]|[@+id/sourceWidget,@+id/targetWidget,format]
Value field content
sourceWidget
- defines widget from which data is retrieved for conversion.
- Currently implemented for:
GnEditText
– value inGnEditText
must be timestamp
targetWidget
- widget into which converted timestamp will be stored.
- Currently implemented for:
format
- acceptable formats can be found here
- i.e.
"dd.MM.yyyy hh:mm"
- i.e.