I have two IG's.
ig_workbench and ig_detail
In the selectionChange DA event of the ig_workbench IG, I have the following code:
if (apex.region("ig_workbench")) {
console.log('Set hdr values - inside clause');
var grid = apex.region("ig_workbench").widget().interactiveGrid("getViews", "grid");
var model = grid.model;
var record = grid.getSelectedRecords()[0];
if (record) {
console.log('Set hdr values - inside record');
$s("P2_ID_HDR", model.getValue(record, "INTERFACE_ID"));
}
}
The Detail ID has a similar DA event. In the IG, right now for testing, I just put a console.log message.
When ever I enter the IG_DETAIL, I noticed that the selectionChange of both the IG's were getting fired.
How do I prevent it?
Vinish Kapoor
Check if you have specified the same static id for both IG.
vn
Both the IG's have different StaticId's. One is called ig_workbench and other is called ig_detail.
The "Fire on..." is off.
Thanks.
Vinish Kapoor
If both IGs are linked together (master-detail) then the DA will fire for both.