Rowset.keyValues()
note
This article is about the keyValues() function of the Rowset object.
Rowset.keyValues()
Gets the keys string of a row set, as an object. This keys string represents the parent keys that the row set refers to. If the row set does not refer to parent keys, the result value is undefined.
Returns an object.
tip
To get the keys string as a string instead, use .keysString().
Syntax
$.udb( *ds* ).rowSet( *rowSet* ).keyValues()
The required ds parameter is a data source selector.
The required rowSet parameter is a rowset identifier.
Example
This example returns the keys string, as an object, of the parent TOUR record that the current row set of SCHEDTOUR refers to. TOUR has a composite primary key spanning 2 columns:
$.udb('SCHEDTOUR').rowSet('current').keyValues();
Example result:
{ '1.DS59': { '$60': 'AUSTRALIA', '$61': 'ISLAND SUNTANNER' } }