Skip to main content
Version: 10.1

ColsMeta.isKey()

note

This article is about the isKey() function of the ColsMeta object.

ColsMeta.isKey()

Finds out if this column is a key column.

Returns a boolean.

Syntax

$.udbMeta( *ds* ).cols( *cols* ).isKey()

The optional ds is a data source selector. The optional cols is a column selector.

This function returns true if the column is a key column, false otherwise.

Example

var isKey = $.udbMeta('EMP').cols('EMPLOYEE_ID').isKey();