Skip to main content
Version: 11.2

$.udb(ds).keys()

note

This article is about the keys() function of the DataSourceContainer object.

$.udb(ds).keys()

Gets the key columns of the first data source in the container.

Returns a Map object, where each entry maps a key column name to its alias. If the data source has no key columns defined, all of its columns are returned as keys.

Syntax

$.udb( *ds* ).keys()

The required ds parameter is a data source selector.

Example

$.udb('EMP').keys();

Example result:
Map(1) {'EMPNO' => 'EMPNO'}