Cols.isMandatory()
note
This article is about the isMandatory() function of the Cols object.
Cols.isMandatory()
Detects whether the first column in scope is mandatory.
Returns a boolean.
Syntax
$.udb( *ds* ).cols( [columns] ).isMandatory()
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
if ($.udb('EMP').cols('EMPNO').isMandatory()) {
console.log('EMPNO is mandatory');
}