$.udb(ds).setDataSetSize()
note
This article is about the setDataSetSize() function of the DataSourceContainer object.
$.udb(ds).setDataSetSize()
Sets the size of a data set of the first data source in the container.
Returns a UdbPromise object with the UdbDsc object as parameter.
note
To get an existing data set size, call $udb(ds).dataSetSize().
Syntax
$.udb( *ds* ).setDataSetSize( *value* )
.then( ( *dsc* ) => {
// success
})
.catch(() => {
// failure
})
.finally(() => {
// executed after success / failure is handled
});
The required ds is a data source selector.
The required value is an integer specifying the desired target data set size.
note
This function returns a UdbPromise because after changing the value, the existing data sets are rearranged and recalculated, which may trigger an internal asynchronous .gotoDataSet() or .refresh() action if the data set index is changed, or if missing records need to be retrieved.
Example
$.udb('EMP').setDataSetSize(20);