Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Deleting Rows in a Table

Avatar

Level 3

Is it possible to have a button to delete rows in a static table?  Each row is different but certain rows may not be needed depending on customer and was wondering if rows in a static table can be deleted.  Help on this is very much appreciated...thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can surely remove Rows from Static Tables.

The Row which the User wants to remove should satisfy the following conditions.

1. Repeat Row for each Data Item option must be selected

2. Min Count should be set to 0. (This will deselct the Min Count option, but no worry)

3. Initial Count should be set to 1 (Otherwise the row will not appear in the form)

Now, write the code to delete the row; as shown below..

 

Hope this may helps..

Reach me on nith.igate@gmail.com if you need a sample for this.

Nith

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

You can surely remove Rows from Static Tables.

The Row which the User wants to remove should satisfy the following conditions.

1. Repeat Row for each Data Item option must be selected

2. Min Count should be set to 0. (This will deselct the Min Count option, but no worry)

3. Initial Count should be set to 1 (Otherwise the row will not appear in the form)

Now, write the code to delete the row; as shown below..

 

Hope this may helps..

Reach me on nith.igate@gmail.com if you need a sample for this.

Nith

Avatar

Level 3

I have two quick questions...when say one row is deleted I can't get the recalculate to work what is the correct way to do this? Also, from one drop down that is in a cell with years 2006...2008...2010...etc. is there a way for the rest of the column to chronicolgically follow.  So if the user choses year 2010 I would like the rest of the column go down 2011, 2012, 2013 and so on...help on this is greatly appreciated...thanks so much.