Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Resetting ALL the added instances in table

Avatar

Level 3

Hello,

I'm trying to make a reset button clear the entire added rows in a dynamic table.

I created a table that allows expansion/contraction and all I want for the reset button is to reset my table to the defaulted state when clicked on, aside from clearing all the data on the form.

Right now I have this line of code added to my reset button:

TableForm.Table._Students.removeInstance(this.parent.index);

However, all it does it to clear one row at the time per click when what I really want it to do is to clear all the extra rows in one single click.

Thank you very much!!!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Here is an example: https://acrobat.com/#d=RZ1lzX23*u7L4N9rtWCYPQ

If you look at the reset button, I have a loop that works through the instances and removes each one until the table is restored.

Hope that helps,

Niall

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

Here is an example: https://acrobat.com/#d=RZ1lzX23*u7L4N9rtWCYPQ

If you look at the reset button, I have a loop that works through the instances and removes each one until the table is restored.

Hope that helps,

Niall