Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Deletion of single or multiple rows by selecting check boxes?

Avatar

Level 1

Hi ,

I want to delete a row or no of rows  in a table by selecting the check boxes.COuld any one suggest me how to do this?

Regards,

Ram

0 Replies

Avatar

Level 6

Following is the JavaScript sample you may have to tweak the code to fit your situation....

// Invoke the Instance Manager to remove the current instance of the detail subform.

_<SubformName/RowSOMName>.removeInstance(index of the object to remove)

//_Section2Detail.removeInstance(this.parent.index); //in my case I have a delete button next to each row when clicked that will pass the index of the parent(row index as it is part of that row).

 

// Invoke the recalculate method to update the form calculations.

xfa.form.recalculate(1);