Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

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

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

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