From wiki.ginstr.com
Jump to: navigation, search
(Action signatures)
Line 20: Line 20:
 
| [[source]] from where value for conversion will be retrieved
 
| [[source]] from where value for conversion will be retrieved
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
**[[DtText]]
+
**[[Datatypes#text|text]]
 
**[[Datatypes#date|date]]
 
**[[Datatypes#date|date]]
 
**[[Datatypes#dateTime|dateTime]]
 
**[[Datatypes#dateTime|dateTime]]
Line 28: Line 28:
 
| [[target]] from where the while action is using value as expression comparsion parameter
 
| [[target]] from where the while action is using value as expression comparsion parameter
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
** [[DtText]]
+
** [[Datatypes#text|text]]
 
|-
 
|-
 
| format
 
| format

Revision as of 11:37, 31 March 2017

gn:act_convertTimestampToFormat

Description
Action used to convert timestamp (numerical value) from certain widget to human readable format.
Action returns
void

Action signatures

Convert timestamp from certain widget

[gn:act_convertTimestampToFormat]|[source,target,format]
Parameter Description
source source from where value for conversion will be retrieved
target target from where the while action is using value as expression comparsion parameter
format format in which source value will be converted

Example

@+id/timeInDATA - source
@+id/clockTimeIn - target
@string/screen3_timeFormat - format e.g. dd.MM.yyyy H:mm:ss

[gn:act_convertTimestampToFormat]|[@+id/timeInDATA,@+id/clockTimeIn,@string/screen3_timeFormat]