From wiki.ginstr.com
Jump to: navigation, search
(Example)
m (formatting)
 
Line 9: Line 9:
 
===Update row column values===
 
===Update row column values===
  
;<code>[gn:act_updateLstRowColumnFromWidget]|[target,column,source]</code>
+
:;<code>[gn:act_updateLstRowColumnFromWidget]|[target,column,source]</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
 
|-
 
|-
| [[target]]
+
| <code>[[target]]</code>
 
| [[target]] where the value will be updated
 
| [[target]] where the value will be updated
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
** [[GnListView]]
+
** <code>[[GnListView]]</code>
 
|-
 
|-
| column
+
| <code>column</code>
 
| hardcoded column name where the data will be updated
 
| hardcoded column name where the data will be updated
 
|-
 
|-
Line 32: Line 32:
  
 
====Example====
 
====Example====
<code>@+id/listMaterialsForAssign</code> - GnListView<br>
+
:<code>@+id/listMaterialsForAssign</code> - <code>[[GnListView]]</code><br>
<code>materialAssignment_handOverTimestamp</code> - column name<br>
+
:<code>materialAssignment_handOverTimestamp</code> - column name<br>
<code>@+id/materialAssignment_handOverTimestampUPDATE</code> - source<br><br>
+
:<code>@+id/materialAssignment_handOverTimestampUPDATE</code> - source<br>
<code>[gn:act_updateLstRowColumnFromWidget]|[@+id/listMaterialsForAssign,materialAssignment_handOverTimestamp,@+id/materialAssignment_handOverTimestampUPDATE]</code>
+
:; ⤷ <code>[gn:act_updateLstRowColumnFromWidget]|[@+id/listMaterialsForAssign, materialAssignment_handOverTimestamp, @+id/materialAssignment_handOverTimestampUPDATE]</code>
 
<hr>
 
<hr>

Latest revision as of 16:07, 12 July 2017

gn:act_updateLstRowColumnFromWidget

Description
Action used to update value held in widget with rows, row column by value from widget.
Action returns
void

Action signatures

Update row column values

[gn:act_updateLstRowColumnFromWidget]|[target,column,source]
Parameter Description
target target where the value will be updated
column hardcoded column name where the data will be updated
source source from where the data will be used

Example

@+id/listMaterialsForAssign - GnListView
materialAssignment_handOverTimestamp - column name
@+id/materialAssignment_handOverTimestampUPDATE - source
[gn:act_updateLstRowColumnFromWidget]|[@+id/listMaterialsForAssign, materialAssignment_handOverTimestamp, @+id/materialAssignment_handOverTimestampUPDATE]