Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Executes given callback for every row in data table.

DataTable myDataTable.Each(fn: (row: DataRow) => void)

Executes given callback for every row in data table.

DataTable myDataTable.Each(fn: (row: DataRow, i: number) => void)

Arguments

(row: DataRow) => void fn
Function to call for every data row.

Remarks

If callback is null, error is thrown.

Example

Scan all rows

Code Block
languagejs
var table = $Database.Get({
    Parameters : {
        TargetSchema : 'HR',
        TargetTable : 'Groups'
    }
});

table.Each(function () {
    var id = this.Id;
});