commit(type)

When a user adds or changes a row in an Editable Table, the new or modified row is highlighted in color. To clear the highlight on these rows and remove them from the corresponding array returned by getFormRows([type]), use the table’s commit function.

Parameters

type

Type of rows to commit: ADDED, CHANGED, DELETED, or the index of a particular row

Example

// Clear highlights on added rows, and remove them from
// array returned by getFormRows(ADDED).
Table1.commit(ADDED);

// Clear highlights on changed rows, and remove them from
// array returned by getFormRows(CHANGED).
Table1.commit(CHANGED);

// Remove deleted rows from array returned by
// getFormRows(DELETED).
Table1.commit(DELETED);

// Remove the row returned by getFormRows(idx) from the
// array of modified rows.
Table1.commit(idx);

Either syntax below can be used in component script:

commit                 // unqualified
TableView1.commit      // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.