Skip to main content
Version: 11.2

$.udb(ds).hasCount()

note

This article is about the hasCount() function of the DataSourceContainer object.

$.udb(ds).hasCount()

Detects whether a record count must be performed when querying the first data source in the container. This depends on the value of the hasCount property of that data source.

Returns a boolean.

Syntax

$.udb( *ds* ).hasCount()

The required ds is a data source selector.

Example

if ($.udb('EMP').hasCount()) {
let total = $.udb('EMP').rowCount();
console.log('Total nb. of records: %d', total);
}