Identify the rows flagged for mass deletion in Skuid JS Snippet to handle some functionality before

EbinEbin
edited April 28, 2020 in Questions
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 ?

Comments

  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited April 2, 2020
    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);
    });


  • EbinEbin
    edited March 26, 2020
    Thank you Zach ! I have not tried this yet, I will come back when I do.. 
  • EbinEbin
    edited April 2, 2020
    This worked fine Zach !
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!