Rows
Row Methods
Name | Description |
distinctArray(column) | Returns an array of distinct values in |
insert(rows, first?) | Inserts |
join(table) | Joins a data table with a second table using an inner join. Visit DataTables Inner Joins for examples. |
leftJoin(table) | Joins a data table with a second table using a left join. Visit DataTables Left Join for examples. |
newRow | Returns a new rows with the same schema as the existing rows. All values are set to |
replace(keyName, keyValue, row) | Replaces the row with the column value |
Delete Row Methods
Use the following methods to delete
rows from a data table.
Name | Description |
eq(column, value) | Deletes the rows where the column |
ne(column, value) | Deletes the rows where the column |
filter(function) | Deletes rows using a custom function. As the |
The following deletes all rows where UserName
is apeters
.
Update Row Methods
Use the following methods to update
the values of rows in a data table.
Name | Description |
update(column) | Starts an update method chain for a |
value(value) | Sets the value of the column passed in the |
filter(function) | Sets the value of the column passed in the |
The first example below sets the Active
column to false
for all rows. The second example sets the Active
column to false
only for UserName
apeters
. It is otherwise set to true
.
Visit DataTable Rows for detailed examples of using row data table methods.
Last updated