Skip to main content
Version: 11.2

Rows.ds()

note

This article is about the ds() function of the Rows object.

Rows.ds()

Gets the data source that these rows belong to.

Returns a UdbDsc object.

Syntax

$.udb( *ds* ).rows( [rowRef1], [rowRef2] ).ds()
$.udb( *ds* ).rowSet( *rowSet* ).rows( [rowRef1], [rowRef2] ).ds()

The required ds parameter is a data source selector.

The optional rowSet parameter is a rowset identifier. If the .rowSet() clause is omitted, then .rowSet('current') is assumed.

The optional rowRef1, rowRef2 are row selectors. If omitted, all records in scope are addressed.

Example

let rows = $.udb('EMP').rows('current');

console.log('These rows belong to %s', rows.ds().name());