$.udb(ds).isAlive()
note
This article is about the isAlive() function of the DataSourceContainer object.
$.udb(ds).isAlive()
Detects whether the first data source in the container is still active, i.e. it has not been removed from its container, for example because the frame it belongs to was closed.
Returns a boolean.
Syntax
$.udb( *ds* ).isAlive()
The required ds is a data source selector.
Example
let dsc = $.udb('EMP');
// ... later, possibly after the frame containing EMP has been closed ...
if (dsc.isAlive()) {
dsc.refresh();
}
else {
console.log('EMP is no longer available; its frame may have been closed');
}