.getForeignKey()

Previous Next

Gets column references to the foreign key(s) of this column, if this column is of a lookup data source.

Returns an array.

Syntax

.getForeignKey()

 

Example

if (!isMandatory && $.udb(dsId).isLookup())

  isMandatory = $.udbMeta(dsId).cols(column).getForeignKey()[0].isMandatory();