.keysString()

Previous Next

Gets the keys string of a row set. 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, use .keyValues() instead.

Syntax

.keysString()

 

Example 1

if (this.activeParentKey === null || this.activeParentKey === dsc.rowSet(pRef).keysString()) {

 

}

 

Example 2

This example returns the keys string of the parent TOUR record that the current row set refers to:

$.udb("SCHEDTOUR").rowSet('current').keysString();

Assuming that TOUR has a composite primary key spanning 2 columns, an example value for such a keys string is:

"1.DS59=$60:AUSTRALIA;$61:SUNTANNER"

 

For more on keys strings, go to the Rowset help topic.

 

See also

Rowset object (rowSet)

.keyValues()