Skip to main content
Version: 11.2

Rowset.isQuerying()

note

This article is about the isQuerying() function of the Rowset object.

Rowset.isQuerying()

Detects whether the row set is currently in the process of being queried for records.

Returns a boolean.

Syntax

$.udb( *ds* ).rowSet( *rowSet* ).isQuerying()

The required ds parameter is a data source selector.

The required rowSet parameter is a rowset identifier.

Example

let rowSet = $.udb('EMP').rowSet('current');

rowSet.executeQuery();

UdbPromise.loop(50, (resolve) => {
if (rowSet.isQuerying())
console.log('Busy...');
else
if (rowSet.isQueried())
resolve(rowSet);
})
.then((rowSet) => {
// ...
});