Skip to main content
Version: 11.2

Rows.context()

note

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

Rows.context()

Gets the frame context of the data source that these rows belong to.

Returns a frame context ID.

Syntax

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

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 live in frame context %s', rows.context());