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!

Delete All Rows on Interactive Grid

Eric.SacramentoFeb 1 2019 — edited Feb 1 2019

Hi guys,

I am trying to delete all rows on IG

I want to mimic the delete button from Row Actions Menu

do you known what I am doing wrong ?

var widget = apex.region('emp').widget();

var grid = widget.interactiveGrid('getViews','grid');

var model = grid.model;

model.forEach(function(r) { 

  model.deleteRecords(r); 

});

Thank you

This post has been answered by Jorgelina1 on Feb 1 2019
Jump to Answer
Comments
Post Details
Added on Feb 1 2019
6 comments
1,185 views