$.udb(ds).isDeletable()
note
This article is about the isDeletable() function of the DataSourceContainer object.
$.udb(ds).isDeletable()
Detects whether the first data source in the container is deletable.
Returns a boolean.
Syntax
$.udb( *ds* ).isDeletable()
The required ds is a data source selector.
Example
// only attempt to delete the current record if the data source allows it
let dsc = $.udb('EMP');
if (dsc.isDeletable()) {
dsc.rows('current').rowDelete();
}
else {
console.log('EMP does not allow deleting records');
}