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.

keeping a title and table together?

Avatar

Level 2

I have an xml file building a multiple tables.

The form looks like

Tablessubform containing category and EntryTable

Tablessubform repeates per category and fills out the category name

The entry table contains multiple rows of entries growing based on xml

I would like to have these flow inline from one to the next.  so it looks like

CATEGORY                                             CATEGORY 3

TABLE HEADER                                       TABLEHEADER

TABLE ENTRY                                          TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE FOOTER                                        TABLE FOOTER

CATEGORY 2

TABLEHEADER

TABLE ENTRY

TABLE ENTRY

TABLE ENTRY

TABLE FOOTER

or

CATEGORY                                             CATEGORY 3

TABLE HEADER                                       TABLEHEADER

TABLE ENTRY                                          TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE FOOTER                                        TABLE FOOTER

CATEGORY 2

TABLEHEADER

TABLE ENTRY

TABLE ENTRY

TABLE ENTRY

TABLE FOOTER

CATEGORY3

TABLE HEADER

TABLE ENTRY

or even

CATEGORY                                             TABLEHEADER

TABLE HEADER                                       TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE FOOTER                                        TABLE FOOTER

CATEGORY 2

TABLEHEADER

TABLE ENTRY

TABLE ENTRY

TABLE ENTRY

TABLE FOOTER

CATEGORY3

TABLE HEADER

TABLE ENTRY

I do not want it to look like this where the category is the last thing in a column or even worse the last thing on a page

CATEGORY                                             TABLEHEADER

TABLE HEADER                                      TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE ENTRY                                          TABLE ENTRY

TABLE FOOTER                                        TABLE FOOTER

CATEGORY 2

TABLEHEADER

TABLE ENTRY

TABLE ENTRY

TABLE ENTRY

TABLE FOOTER

CATEGORY3

How can I set the options to make sure the page break doesn't happen in a bad spot?  How can I set the Category Title to repeat when it jumps to a new content area?  Just resizing everything won't work as the data is dynamic and it will just break at a later date.

2 Replies

Avatar

Former Community Member

There is a keep with previous and keep with next option so that you can force specific content to stay together. So I woud set the table Header to keep with previous so that the Category and the Header will always stay together ....do not set those options on the Row.

Make sense?

Paul

Avatar

Level 2

I tried that, but it didn't seem to work.  The best solution I have found is to create another header row merge the cells and put the title in there.  However, the second header does not repeat at page breaks.  It is still better than the current way it works though.