Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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

1 Reply

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);