Skip to main content
Version: 11.2

Rowset.execute()

note

This article is about the execute() function of the Rowset object.

Rowset.execute()

Executes a function with this row set temporarily made the current row set of its data source, even if it is not the actually selected one. This allows, for example, operations on records of this row set without disturbing the current (actual) selection of a row set.

Returns the result of executing function.

Syntax

$.udb( *ds* ).rowSet( *rowSet* ).execute( *function* )

The required ds parameter is a data source selector.

The required rowSet parameter is a rowset identifier.

The required function is the function to be executed. Inside function, this refers to the row set.

Example

let rowSet = $.udb('EMP').rowSet('DEPT_NO:10');

let name = rowSet.execute(function() {
// executed with EMP's current record temporarily pointing into this row set
return this.rows('current').cols('NAME').val();
});