Skip to main content
Version: 10.1

$.udb(ds).createRowSet()

note

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

$.udb(ds).createRowSet()

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

Returns the associated Rowset object.

Syntax

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

The optional ds is a data source selector.

The possible values for the required parent-key are described in topic: dsc.rowSet() function.

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({
source: "TreeControl",
success: function(options) {
$.udb(options.dsRefs).trigger("showdata", {parentId: row.rowId(), pKeys:
parentKey, mode: null, source: 'openfolder', nodeId:
options.args.nodeId});
$.udb(options.dsRefs).trigger("aftertreedata");
},
hostvars: this.getParentKeys(childProps.alias, row),
args: {nodeId: n}
});