From wiki.ginstr.com
Jump to: navigation, search
(Supported source1 to source2 widget combinations)
(Supported source1 to source2 widget combinations)
Line 119: Line 119:
 
| <code>[[Datatypes#time|time]]</code>
 
| <code>[[Datatypes#time|time]]</code>
 
| <code>[[Datatypes#date|date]]</code>
 
| <code>[[Datatypes#date|date]]</code>
 +
|-
 +
| <code>[[Datatypes#text|text]]</code>
 +
| <code>[[Datatypes#datetime|datetime]]</code>
 +
|-
 +
| <code>[[Datatypes#number|number]]</code>
 +
| <code>[[Datatypes#datetime|datetime]]</code>
 +
|-
 +
| <code>[[Datatypes#counter|counter]]</code>
 +
| <code>[[Datatypes#datetime|datetime]]</code>
 +
|-
 +
| <code>[[Datatypes#date|date]]</code>
 +
| <code>[[Datatypes#datetime|datetime]]</code>
 +
|-
 +
| <code>[[Datatypes#time|time]]</code>
 +
| <code>[[Datatypes#datetime|datetime]]</code>
 +
|-
 +
| <code>[[Datatypes#text|text]]</code>
 +
| <code>[[Datatypes#time|time]]</code>
 +
|-
 +
| <code>[[Datatypes#number|number]]</code>
 +
| <code>[[Datatypes#time|time]]</code>
 +
|-
 +
| <code>[[Datatypes#counter|counter]]</code>
 +
| <code>[[Datatypes#time|time]]</code>
 +
|-
 +
| <code>[[Datatypes#date|date]]</code>
 +
| <code>[[Datatypes#time|time]]</code>
 +
|-
 +
| <code>[[Datatypes#datetime|datetime]]</code>
 +
| <code>[[Datatypes#time|time]]</code>
 +
|-
 +
| <code>[[Datatypes#text|text]]</code>
 +
| <code>[[Datatypes#status|status]]</code>
 +
|-
 +
| <code>[[Datatypes#text|text]]</code>
 +
| <code>[[Datatypes#gps|gps]]</code>
 +
|-
 +
| <code>[[Datatypes#text|text]]</code>
 +
| <code>[[Datatypes#email|email]]</code>
 +
|-
 +
| <code>[[Datatypes#text|text]]</code>
 +
| <code>[[Datatypes#pointer|pointer]]</code>
 +
|-
 +
| <code>[[Datatypes#email|email]]</code>
 +
| <code>[[Datatypes#pointer|pointer]]</code>
 +
|-
 +
| <code>[[Datatypes#number|number]]</code>
 +
| <code>[[Datatypes#pointer|pointer]]</code>
 
|-
 
|-
 
|}
 
|}

Revision as of 17:14, 12 September 2017

gn:act_convertDatatype

Description
Action used to copy content from source widget to destination widget.
Action returns
void

Action signatures

Copy data

[gn:act_convertDatatype]|[source1,source2,target]
Parameter Description
source1 source from where the value will be converted
source2 source to which datatype the value will be converted
target target where the converted value will be stored

Example

@+id/sourceWidgetId1 - source1
@+id/sourceWidgetId2 - source2
@+id/targetWidgetId - target
[gn:act_convertDatatype]|[@+id/sourceWidgetId1,@+id/sourceWidgetId2,@+id/targetWidgetId]

Supported source1 to source2 widget combinations

Source Target
number text
counter text
status text
date text
time text
datetime text
gps text
pointer text
text number
counter number
date number
time number
datetime number
text counter
number counter
date counter
time counter
datetime counter
date long
datetime long
text date
number date
counter date
datetime date
time date
text datetime
number datetime
counter datetime
date datetime
time datetime
text time
number time
counter time
date time
datetime time
text status
text gps
text email
text pointer
email pointer
number pointer