From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
Line 9: Line 9:
  
 
===Update values===
 
===Update values===
 +
:;<code>[gn:act_rawBulkUpdateValues]|[table,source]</code>
  
;<code>[gn:act_rawBulkUpdateValues]|[table,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
 
|-
 
|-
| table
+
| <code>table</code>
 
| hardcoded name of table where the data will be updated
 
| hardcoded name of table where the data will be updated
 
|-
 
|-
| [[source]]
+
| <code>[[source]]</code>
 
| [[source]] from where the rows will be used
 
| [[source]] from where the rows will be used
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
** [[GnListView]]
+
** <code>[[GnListView]]</code>
 
|-
 
|-
 
|}
 
|}
  
 
====Example====
 
====Example====
<code>materialAssignments</code> - table name<br>
+
:<code>materialAssignments</code> - table name<br>
<code>@+id/listMaterialsForAssign</code> - GnListView<br><br>
+
:<code>@+id/listMaterialsForAssign</code> - <code>[[GnListView]]</code><br>
<code>[gn:act_rawBulkUpdateValues]|[materialAssignments,@+id/listMaterialsForAssign]</code>
+
:; ⤷ <code>[gn:act_rawBulkUpdateValues]|[materialAssignments,@+id/listMaterialsForAssign]</code>
 
<hr>
 
<hr>

Latest revision as of 16:06, 12 July 2017

gn:act_rawBulkUpdateValues

Description
Action used to update values to database on multiple rows that are stored in widgets that contain multiple rows, such as GnListView
Action returns
boolean

Action signatures

Update values

[gn:act_rawBulkUpdateValues]|[table,source]
Parameter Description
table hardcoded name of table where the data will be updated
source source from where the rows will be used

Example

materialAssignments - table name
@+id/listMaterialsForAssign - GnListView
[gn:act_rawBulkUpdateValues]|[materialAssignments,@+id/listMaterialsForAssign]