Rowset.keysString()
note
This article is about the keysString() function of the Rowset object.
Rowset.keysString()
Gets the keys string of a row set, as a string. This keys string represents the parent keys that the row set refers to. If the row set does not refer to parent keys, the keys string equals '' (the empty string).
Returns a string.
tip
To get the keys string as an object instead, use .keyValues().
Syntax
$.udb( *ds* ).rowSet( *rowSet* ).keysString()
The required ds parameter is a data source selector.
The required rowSet parameter is a rowset identifier.
Example
This example returns the keys string 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').keysString();
Example result:
'1.DS59=$60:AUSTRALIA;$61:ISLAND_SUNTANNER'