Skip to main content
Version: 10.1

$.udbMeta(ds).isAutoQuery()

note

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

$.udbMeta(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 asynchronically, so that the user is not hindered by its progress.

Returns a boolean.

Syntax

$.udbMeta( *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) {
var _this = this;
var context = $.udb.currentFrameId;
setTimeout(function(){
$.udb.executeInContext(context, function() {
_this.get({dsi: options.dsi + 1});
}, _this);
}, 5);
}