From wiki.ginstr.com
Jump to: navigation, search
(Created page with "<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> <span STYLE="font-size: xx-large"><code>gn:act_convertDatatype</code></span> Category:Action_Library...")
 
Line 9: Line 9:
 
===Copy data===
 
===Copy data===
  
:;<code>[gn:act_copyData]|[source,target]</code>
+
:;<code>[gn:act_convertDatatype]|[source1,source2,target]</code>
  
 
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
Line 16: Line 16:
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| <code>[[source]]</code>
+
| <code>[[source|source1]]</code>
| [[source]] from where the value will be copied
+
| [[source]] from where the value will be converted
 +
* Valid [[source|sources]]:
 +
** any [[source]]
 +
|-
 +
| <code>[[source|source2]]</code>
 +
| [[source]] to which datatype the value will be converted
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
 
** any [[source]]
 
** any [[source]]
 
|-
 
|-
 
| <code>[[target]]</code>
 
| <code>[[target]]</code>
| [[target]] where the value will be stored
+
| [[target]] where the converted value will be stored
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
 
** any [[target]]
 
** any [[target]]
Line 29: Line 34:
  
 
====Example====
 
====Example====
:<code>@+id/sourceWidgetId</code> - source<br>
+
:<code>@+id/sourceWidgetId1</code> - source1<br>
 +
:<code>@+id/sourceWidgetId2</code> - source2<br>
 
:<code>@+id/targetWidgetId</code> - target<br>
 
:<code>@+id/targetWidgetId</code> - target<br>
:; ⤷ <code>[gn:act_copyData]|[@+id/sourceWidgetId,@+id/targetWidgetId]</code>
+
:; ⤷ <code>[gn:act_convertDatatype]|[@+id/sourceWidgetId1,@+id/sourceWidgetId2,@+id/targetWidgetId]</code>
  
===Supported [[source]] to [[target]] widget combinations===
+
===Supported [[source|source1]] to [[source|source2]] widget combinations===
 
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-

Revision as of 17:03, 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
GnMediaAction GnMediaGallery
GnCaptureSignature GnMediaGallery
pointer variable text variable
rows variable rows variable
GnListView rows variable
rows variable GnListView
GnEditText GnEditText
GnDropDown GnEditText
GnPhoneNumber GnPhoneAction
GnPhoneNumber GnPhoneNumber
GnEmail GnEmail
GnEditText GnEmail
GnDatePicker GnEditText
GnDateTimePicker GnEditText
GnMediaAction GnMediaAction
GnMediaAction GnImageView
GnIBeacon GnDropDown
GnIBeacon GnMediaGallery
GnAutoCompleteTextView GnEditText
GnIBeacon GnAutoCompleteTextView