Rows.isInserted()
note
This article is about the isInserted() function of the Rows object.
Rows.isInserted()
Detects whether the first record in the Rows object is inserted (but not yet committed).
Returns a boolean.
Syntax
$.udb( *ds* ).rows( [rowRef1], [rowRef2] ).isInserted()
$.udb( *ds* ).rowSet( *rowSet* ).rows( [rowRef1], [rowRef2] ).isInserted()
The required ds parameter is a data source selector.
The optional rowSet parameter is a rowset identifier. If the .rowSet() clause is omitted, then .rowSet('current') is assumed.
The optional rowRef1, rowRef2 are row selectors. If omitted, all records in scope are addressed.
Example
if ($.udb('EMP').rows('current').isInserted()) {
console.log('The current EMP record has not been committed yet');
}