HOW TO CHECK ALL CHECKBOX IN IN INTERACTIVE GRID ORACLE APEX?
1. Set static ID in IG
2. create one item supposed P5_CHECKBOX_ALL
VALUES: 1 FOR CHECKED,0 FOR UNCHECKED
3. use Dynamic action on P5_CHECKBOX_ALL
and use below code
// Get the Interactive Grid widget instance
var ig$ = apex.region("roles_assign").widget();
var model = ig$.interactiveGrid("getViews", "grid").model
// Loop through all records in the interactive grid
model.forEach(function(record) {
// Access the column value and update it
var newValue = 1; // Specify the new value here
var val = apex.item('P5_CHECK_ALL').getValue();
model.setValue(record,'ADDING', val);
model.setValue(record,'DELETING', val);
model.setValue(record,'UPDATING', val);
});
Comments
Post a Comment