$.udb(ds).isLookup()
note
This article is about the isLookup() function of the DataSourceContainer object.
$.udb(ds).isLookup()
Detects whether the first data source in the container is a lookup data source or not.
Returns a boolean.
Syntax
$.udb( *ds* ).isLookup()
The required ds is a data source selector.
Example
// lookup data sources are populated automatically by the framework, so
// skip data sources that turn out to be a lookup when creating new records
let dsc = $.udb('DEPT_LOOKUP');
if (!dsc.isLookup()) {
dsc.rowCreate();
}
else {
console.log('%s is a lookup data source; records are not created in it directly', dsc.name());
}