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