Skip to main content
Version: 11.2

$.udb(ds).createRowSet()

note

This article is about the createRowSet() function of the DataSourceContainer object.

$.udb(ds).createRowSet()

Creates a new rowset object in the data source for some parent key.

Returns the associated UdbRowSets object.

Syntax

$.udb( *ds* ).createRowSet( *parent-key* )

The required ds parameter is a data source selector.

The possible values for the required parent-key are described in topic: $.udb(*ds*).rowSet().

tip

If parent-key has the value 'current', then no Rowset object is created, and the currently active Rowset is returned.

tip

If the Rowset to be created already exists, then no new Rowset is created.

Example

$.udb(alias).createRowSet(parentKey).select();
$.udb(childProps.alias).executeQuery({
hostvars: this.getParentKeys(childProps.alias, row),
args: {nodeId: n}
})
.then((dsc) => {
dsc.trigger('showdata', {
parentId: row.rowId(),
pKeys: parentKey,
source: 'openfolder',
nodeId: options.args.nodeId
});
dsc.trigger('aftertreedata');
})