.isAutoQuery()

Previous Next

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

.isAutoQuery()

 

Example

This example uses executeInContext(); for more information about this function, go to Contexts.

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);

}