$.udb(ds).hasLookups()
note
This article is about the hasLookups() function of the DataSourceContainer object.
$.udb(ds).hasLookups()
Detects whether the first data source in the container has one or more lookup data sources.
Returns a boolean.
Syntax
$.udb( *ds* ).hasLookups()
The required ds is a data source selector.
Example
// only bother synchronizing lookups if EMP actually has any
if ($.udb('EMP').hasLookups()) {
console.log('EMP has %d lookup data source(s)', $.udb('EMP').lookups().size);
}