Skip to main content

Is there a way to identify the rows flagged for mass deletion in Skuid JS Snippet to handle some functionality before model.save() which will delete the rows ?

Yep, you can use model.isRowMarkedForDeletion(row) to check, e.g. if you want to get an array of just the rows marked for deletion you could do this:


var rowsMarkedForDeletion = model.getRows().filter(function(row) {
return model.isRowMarkedForDeletion(row);
});```

Thank you Zach ! I have not tried this yet, I will come back when I do… 


This worked fine Zach !