Skip to main content
Version: 11.2

$.udb(ds).isAutoQuery()

note

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

$.udb(ds).isAutoQuery()

Detects whether the data source automatically queries the next data sets. This depends on the value of the 'Automatically query next data sets' property of the data source. If this value is true, the data source automatically queries the next 9 data sets relative to the currently selected data set, after the last set has been queried. This is done asynchronously, so that the user is not hindered by its progress.

Returns a boolean.

Syntax

$.udb( *ds* ).isAutoQuery()

The required ds is a data source selector.

Example

if ($.udb(this.dsId).isAutoQuery() && options.dsi < this.currentDSI+9 && options.dsi < this.nofSets) {
udbTimeout(() => {
this.get({dsi: options.dsi + 1});
}, 5);
}