Overview
Executes given callback for every row in data table.DataTable DataTable.Each(fn: (row: DataRow) => void)
DataTable DataTable.Each(fn: (row: DataRow, i: number) => void)
Arguments
(row: DataRow) => void fn
Function to call for every data row.
(row: DataRow, i: number) => void fn
Function to call for every data row.
Example
Scan all rowsvar table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function () { var id = this.Id; });
Example
Scan all rowsvar table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function (row) { console.log(row.Id); });
Examples
Scan all rowsvar table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function () { var id = this.Id; });
var table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function (row) { console.log(row.Id); });