Versions Compared

Key

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

Overview

DataTable DataTable myDataTable.Save()

Remarks

Until Save method called all changes on data table is stored in memory. Save method flushes all changes to database.

Example

Scan all rows

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

table.Each(function () {
    this.Name = 'MyAdmin';
});

table.Save();

...

Scan all rows

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

table.Each(function () {
    this.Name = 'MyAdmin';
});

table.Save();