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!

Enable buttons on Interactive Grid

DudemanNov 3 2022

I have a master IG (contactsIG) and a detail IG (wellIG). On master IG Add Row I need to disable the detail IG region. On master IG Save I need to enable the detail IG region. The disable works. The enable seems to work but the Save button on the master and the Add Row button on the detail are disabled.
Is there a way to enable the buttons?
This works in 22 but not in 21. I cannot upgrade from 21 yet.
function(config) {
config.initActions = function(actions) {
var _addRow = actions.lookup("selection-add-row"),
_save = actions.lookup("save"),
addRow = _addRow.action,
save = _save.action;
_addRow.action = function(event, el) {
addRow(event, el);
$("#wellIG").addClass('apex_disabled');
//didnt work 21 or 22: $("#wellIG .a-IG-body").addClass("apex_disabled");
//disabled region but not buttons: apex.region("wellIG").call("getCurrentView").view$.grid("option", "editable", false);
};
_save.action = function(event, el) {
save(event, el);
$("#wellIG").removeClass('apex_disabled');
};
};
return config;
}
IG button issue.png

This post has been answered by Hamza Al-abbasi on Nov 3 2022
Jump to Answer
Comments
Post Details
Added on Nov 3 2022
4 comments
1,228 views