Skip to main content
Version: 10.1

ColsMeta.isMandatory()

note

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

ColsMeta.isMandatory()

Finds out if this column is mandatory.

Returns a boolean.

Syntax

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

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

This function return true if the column is mandatory, false otherwise.

Example

if($.udbMeta('EMP').cols('EMPNO').isMandatory())
alert('mandatory');