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;
}
