Skip to main content
Version: 11.2

Rows.keysString()

note

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

Rows.keysString()​

Gets the keys string of the first record in the Rows object. Unlike Rowset.keysString(), which identifies the parent keys of a row set, this identifies the record's own primary key.

Returns a string. Returns undefined if no record is available.

Syntax​

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

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​

$.udb('EMP').rows('current').keysString();

Example result:
'$9:5'