Skip to main content
Version: 10.1

$.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 Promise object or the 'this' object. From USoft 10.0.1I, returns a udbPromise instead of a Promise object.

note

To get an existing data set size, call $udbMeta(ds).dataSetSize().

Syntax

$.udb( *ds* ).setDataSetSize( *value, promise* )

*promise* ::= { true | false }

The required ds is a data source selector.

The required value is an integer specifying the desired target data set size.

The optional *promise *determines the return value of this function. If promise has the value 'true' (the default), a udbPromise object is returned. If promise has the value 'false', the ‘this’ object is returned instead.

Example

$.udb('EMP').setDataSetSize(20);