Search...
updateRow( )
Updates the row data of a single row at the specified index.
Description
The updateRow()
function updates the row data of a single row at the specified index.
Syntax
function updateRow(index: number, rowData: Object): void
updateRow Parameters
NAME
TYPE
DESCRIPTION
index
number
The number of the row to update.
The rows in a table are zero-based and don't include the table header. The index of the first row is 0
.
rowData
Object
A row data object of field_name:value pairs where the keys are the table columns.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
Update the table's first row
Copy Code
1$w("#myTable").updateRow(0, rowData);
Update the table's first row
Copy Code
1let rowData = {field_1: "Value1", field_2: "Value2"};23// ...45$w("#myTable").updateRow(0, rowData);