Overview
DataTable DataTable myDataTable.Each(fn: (row: DataRow) => void)
DataTable DataTable myDataTable.Each(fn: (row: DataRow, i: number) => void)
...
Function to call for every data row.
Function to call for every data row.
Example
...
language | js |
---|
...
Remarks
If callback is null, error is thrown.
Example
Scan all rows
Code Block | ||
---|---|---|
| ||
var table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function (row) { console.log(row.Id); }); |
Examples
...
Code Block | ||
---|---|---|
| ||
var table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function () { var id = this.Id; }); |
...
Code Block | ||
---|---|---|
| ||
var table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function (row) { console.log(row.Id); }); |