Skip to main content


This article describes the USoft 10 product only.

In USoft 11, the web UI API was revised and improved. For full details, go to:

Revised web UI API in USoft 11


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.

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

 

Be the first to reply!

Reply