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

What is the difference between a table and a subform?

Avatar

Level 1

What is the difference between a table and a subform in LC Forms? Please post your replies regarding the merits and demerits of using subforms instead of tables.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

a table is just a set of subforms with a special role.

It's easier to handle tables if they need to be dynamic (add or remove rows, show or hide rows when page breaks appear etc.).

And Designers UI has some prepared dialogs in the Object palette to simplify the settings of tables.

For subforms the dialogs are more common so you have to script yourself a bit more.

But at least you can do everything with subforms as you can do with tables.

The only that doesn't work very well with tables is when you wrap tables in other tables.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi,

a table is just a set of subforms with a special role.

It's easier to handle tables if they need to be dynamic (add or remove rows, show or hide rows when page breaks appear etc.).

And Designers UI has some prepared dialogs in the Object palette to simplify the settings of tables.

For subforms the dialogs are more common so you have to script yourself a bit more.

But at least you can do everything with subforms as you can do with tables.

The only that doesn't work very well with tables is when you wrap tables in other tables.

Avatar

Level 1

Thanks for replying 1.radzmar. I have to design a dynamic table with different number of columns in consecutive rows. How to do that?

Avatar

Level 10

Hi,

for a variable number of colums this article might the the right one.

http://blogs.adobe.com/formfeed/2011/10/tables-with-variable-numbers-of-columns.html

And not to forget Niall's code solutions for tables. Check it out.

http://www.assuredynamics.com/index.php/code-solutions/table-solutions/