From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
Line 10: Line 10:
 
===Copy data from row===
 
===Copy data from row===
  
;<code>[gn:act_copyDataFromRow]|[source,target]</code>
+
:;<code>[gn:act_copyDataFromRow]|[source,target]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| [[source]]
+
| <code>[[source]]</code>
 
| [[source]] from where the value will be copied
 
| [[source]] from where the value will be copied
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
** [[GnEditText]]
+
** <code>[[GnEditText]]</code>
** [[GnTextView]]
+
** <code>[[GnTextView]]</code>
 
|-
 
|-
| [[target]]
+
| <code>[[target]]</code>
 
| [[target]] where the value will be stored
 
| [[target]] where the value will be stored
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
** [[GnEditText]]
+
** <code>[[GnEditText]]</code>
** [[GnTextView]]
+
** <code>[[GnTextView]]</code>
 
|-
 
|-
 
|}
 
|}
  
 
====Example====
 
====Example====
<code>@+id/resident_nfcTagUid</code> - [[GnEditText]]<br>
+
:<code>@+id/resident_nfcTagUid</code> - <code>[[GnEditText]]</code><br>
<code>@+id/lstRowResidentNfcTagUid</code> - [[GnTextView]]<br><br>
+
:<code>@+id/lstRowResidentNfcTagUid</code> - <code>[[GnTextView]]</code><br>
<code>[gn:act_copyDataFromRow]|[@+id/resident_nfcTagUid,@+id/lstRowResidentNfcTagUid]</code>
+
:; ⤷ <code>[gn:act_copyDataFromRow]|[@+id/resident_nfcTagUid,@+id/lstRowResidentNfcTagUid]</code>
 
<hr>
 
<hr>

Latest revision as of 14:10, 12 July 2017

gn:act_copyDataFromRow

Description
Action used to copy data from selected row from GnListView widget to some other widget outside of GnListView widget.
Action returns
void

Action signatures

Copy data from row

[gn:act_copyDataFromRow]|[source,target]
Parameter Description
source source from where the value will be copied
target target where the value will be stored

Example

@+id/resident_nfcTagUid - GnEditText
@+id/lstRowResidentNfcTagUid - GnTextView
[gn:act_copyDataFromRow]|[@+id/resident_nfcTagUid,@+id/lstRowResidentNfcTagUid]