$.udb(ds).setDataSetSize()

  • 7 December 2022
  • 0 replies
  • 43 views

Userlevel 3
Badge +2

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

 


0 replies

Be the first to reply!

Reply