ColsMeta.getForeignKey()


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

ColsMeta.getForeignKey()

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

Returns an array.

Syntax

$.udbMeta( ds ).cols( cols ).getForeignKey()

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

Example

if (!isMandatory && $.udb(dsId).isLookup())
isMandatory = $.udbMeta(dsId).cols(column).getForeignKey()[0].isMandatory();


   


0 replies

Be the first to reply!

Reply