Skip to main content
Version: 11.2

Cols.isForeignKey()

note

This article is about the isForeignKey() function of the Cols object.

Cols.isForeignKey()

Detects whether the first column in scope is a foreign key column.

Returns a boolean.

Syntax

$.udb( *ds* ).cols( [columns] ).isForeignKey()

The required ds parameter is a data source selector.

The optional columns is a column selector. If omitted, all columns in scope are selected.

Example

let isFk = $.udb('EMP').cols('DEPT_NO').isForeignKey();