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.

Loop in Table with add/delete Rows?

Avatar

Former Community Member

Im going to make a dynamic table where one type of user can add and delete rows.

The other type of user will have a great interest of sorting the table by data and color.

So how do I write the script.

The script should look what the user choose in a drop down box and if the row contain that data the row will be visible else hidden.

What Iw ant to know is how to make a loop for this? To look through all the rows for machng data. The data will always be in the same textfield in the rows.

1 Reply

Avatar

Level 10

Hi,

There are a couple of examples that may help you:

     Building dynamic tables: http://assure.ly/gk8Q7a.

     Looping through repeating rows: http://assure.ly/haaOfc.

     Duplicating table data: http://assure.ly/hw7lwM.

     John Brinkman has a great sorting solution here: http://blogs.adobe.com/formfeed/2009/05/sort_subforms.html.

Hope that helps,

Niall