Rowset.dbCount()
note
This article is about the dbCount() function of the Rowset object.
Rowset.dbCount()
Gets the number of records in the row set that were queried from the server. Unlike .rowCount(), this does not take into account any records inserted or deleted on the client that have not been committed yet.
Returns an integer, or -1 if the row set has not been queried yet.
Syntax
$.udb( *ds* ).rowSet( *rowSet* ).dbCount()
The required ds parameter is a data source selector.
The required rowSet parameter is a rowset identifier.
Example
let rowSet = $.udb('EMP').rowSet('current');
if (rowSet.dbCount() !== rowSet.rowCount()) {
console.log('EMP has uncommitted inserts or deletes pending');
}