Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interactive Grid Override Delete Row Action function

Ambika DayalJun 7 2019 — edited Jun 10 2019

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?

Comments
Post Details
Added on Jun 7 2019
2 comments
5,490 views