Avatar

Not applicable

Hi

I am replicating table dynamically using

this.resolveNode('form1.#subform._subForm2').addInstance(1);

if (xfa.host.version < :smiling_face_with_sunglasses: {

    xfa.form.recalculate(1);

}

When I try to delete the current table instance using

this.resolveNode('form1.#subform._subForm2').removeInstance(this.parent.index);

if (xfa.host.version < :smiling_face_with_sunglasses: {

    xfa.form.recalculate(1);

}

results in always deleteting the first instance ( table )

Any help ?

I have a table with a button "Duplicate Table" and "Delete Table"

If user clicks on "Duplicate Table" it creates/replicates/duplicates the entire table with all the fields and the buttons.

Now from the user perspective suppose I have created/duplicated 5 tables with all the data fields and buttons ( please note each of the newly created table will also have their individual "Delete Table" option). Now I want to delete the third table using the "Delete Table" from the third table ( want to delete the same instance from which the button is clicked deleted .