cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

how to get deleted row id in repeater control

Jump to solution

Hi, I want to know how to get deleted row information (such as row id) in repeater control when I use NWF.FormFiller.Events.RegisterRepeaterRowDeleted function?

My Code:

NWF.FormFiller.Events.RegisterRepeaterRowDeleted(function (){
      var repeaterRow = NWF$(arguments[0][0]);
      if(NWF$(repeaterRow.parents('.nf-repeater')[0]).hasClass('AttDetail'))
      {
            console.log('row has been deleted');
      });
});

Labels: (1)
Reply
1 Reply
Workflow Hero

Re: how to get deleted row id in repeater control

Jump to solution

Solved.

Using NWF.FormFiller.Events.RegisterRepeaterRowDeleting.

NWF.FormFiller.Events.RegisterRepeaterRowDeleting(function (data){
      var repeaterRow = NWF$(arguments[0][0]);

      var rowid = NWF$(data).attr("id");
      if(NWF$(repeaterRow.parents('.nf-repeater')[0]).hasClass('AttDetail'))
      {
            console.log(rowid );
      });
});

0 Kudos
Reply