I am using Apex 5.1 version
I am trying to add my own delete row function. I have this code in the section Execute when page loads
$(function() {
// Add new Element in the row action menu
$("#borrower_ig_row_actions_menu").menu("option").items.push({
type: "action",
id: "irmyDelete",
hide: false,
label: 'My Delete',
icon: 'fa fa-trash',
action: function(event) {
var ret= confirm('Are you sure you want to delete?');
if (ret == true) {
//alert("ret is true");
apex.region("borrower").widget().interactiveGrid("getActions").invoke("row_delete");
}
}
});
});
The new “My Delete” option shows up and on click of “My Delete”, alert box pops up but it does not perform the default action of row delete. What am I doing wrong?