$.udb(ds).isDefault()
note
This article is about the isDefault() function of the DataSourceContainer object.
$.udb(ds).isDefault()
Detects whether the first data source in the container is the default data source.
Returns a boolean.
Syntax
$.udb( *ds* ).isDefault()
The required ds is a data source selector.
Example
// find the data source that is used automatically whenever no data source
// is explicitly specified, for example by a control without one assigned in Web Designer
$.udb().forEach((ds) => {
if (ds.isDefault()) {
console.log('%s is the default data source of this page', ds.name());
}
});