Skip to main content
Nintex Community Menu Bar
Question

Mark Delete Row using Snippet

  • July 11, 2024
  • 4 replies
  • 19 views

Forum|alt.badge.img+3

I am using following block of code to mark rows in model for deletion.

if(delQliPri.data.length &gt;0){<br>&nbsp; &nbsp; $.each(delQliPri.data,function(i,row){<br>&nbsp; &nbsp; console.log('RowID------&gt;',row.Id);<br>&nbsp; &nbsp; delQliPri.deleteRow({Id:row.Id});<br>&nbsp; &nbsp;&nbsp;});<br>}

but it is doing nothing. Don’t understand where it is wrong. Help me in understanding it. I tried to implement it from this Skuid document

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+10

I see deleteRow() but I don’t see abandonAllRows()


Forum|alt.badge.img+3

Yes, I want to mark row for deletion. So on save of the model row will be deleted from Salesforce database. I believe abandonAllRows() is to remove data from model, that won’t delete any data from Salesforce database.


Forum|alt.badge.img+2

Are you trying to delete all of the rows in the  model?  If so, instead of delQliPri.data, use delQliPri.getAllRows() in the each statement.  Also, call deleteRow(row), instead of {Id:row.Id}


Forum|alt.badge.img+3

Thank you Peter, this helped me.