Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Subtable with header and page breaks

Avatar

Level 4

Hi,

in my table one cell is a subform containing another table with a header row.

Header 1Header 2
Sub-Table's Header 1Sub-Table's Header 2

Now I have two nasty effects:

1.) The sub-table's header row shows up for every data set of the sub-table. I only want to see it once.

2.) While rendering the adobe reader appears to ignore page breaks: I want the sub-tables's header row to show on top of each new page. Unfortunately the sub-table's header row is not repeated after a page break. (As I get a header row for every data row there is a 50 % chance that the new page starts with a sub-table's header row.)

Does anyone have a solution for this misbehaviour?

Uli

6 Replies

Avatar

Level 10

Hi Uli,

It is difficult to say without seeing the form, but I think that nesting a table within a row is going to be problematic. I think that you might be better with sections (see Help). There are some table solutions here, whcih might give you a few ideas: http://assure.ly/lwQHm7.

Hope that helps,

Niall

Avatar

Level 4

geschachtelte Tabelle mit Kopfzeilen.gif

I hope this makes it a little easier to understand. The problem is: "HeadersB" doesn't repeat on a new page after a page break. I'd love to upload or e-mail the sample form to anyone interested.

More and more I come to believe that the current version of Adobe Reader/Acrobat cannot render this correctly.

Concerning your idea with sections:  I will try that.

Avatar

Level 4

I tried your idea with sections:

geschachtelte Tabelle mit Kopfzeilen und Section.gif

I suppose, that is what you ment. Well, no help.

Here is page 1 with some sample data (with too many "HeadersB"):

geschachtelte Tabelle result1.gif

And here is page 2 where "HeadersB" is missing:

geschachtelte Tabelle result2.gif

Any ideas?

Avatar

Level 10

Hi,

I don't think you will get it to work, the way you have nested the tables.

Does this help?

Parallels Desktop.png

https://acrobat.com/#d=UM*FnZhAdO5N4kRJ1bP72g

Niall

Avatar

Level 4

Hi Niall,

I tried to come as close as possible to your solution. (Actually it is a pain in the neck to have a different count of header cells and row cells. But with some XFA-editing I got along.)

After all it turned out, that your solution is not really perfekt, I am afraid.

Consider an XML like this:

<FORM>
    <TABLE>
        <SITE>
            <TOWN>Augsburg</TOWN>
            <PLANT>
                <ADDRESS>Kasernstrasse 4</ADDRESS>
                <EMPLOYEES>4</EMPLOYEES>
            </PLANT>
            <PLANT>
                <ADDRESS>Kennedy-Platz 1</ADDRESS>
                <EMPLOYEES>16</EMPLOYEES>
            </PLANT>
        </SITE>
        <SITE>
            <TOWN>Muenchen</TOWN>
            <PLANT>
                <ADDRESS>Guardinistr. 87</ADDRESS>
                <EMPLOYEES>5</EMPLOYEES>
            </PLANT>
            <PLANT>
                <ADDRESS>Humboldstr. 3</ADDRESS>
                <EMPLOYEES>10</EMPLOYEES>
            </PLANT>
        </SITE>
        <SITE>
            <TOWN>Weilheim</TOWN>
            <PLANT>
                <ADDRESS>Zugspitzstrasse 23</ADDRESS>
                <EMPLOYEES>2</EMPLOYEES>
            </PLANT>
            <PLANT>
                <ADDRESS>Pollinger Strasse 14</ADDRESS>
                <EMPLOYEES>3</EMPLOYEES>
            </PLANT>
        </SITE>
    </TABLE>
</FORM>

There is no way getting around this: I have 2 repeating elements in this XML: SITE ad PLANT.

What binding would you choose for "textfield2" in your solution?

FORM.TABLE.SITE[*].PLANT[*].ADDRESS

was my first naive shot. But apparently that cannot do the trick.

Your idea is basically a dummy field as left most column. But now and then I would have to fill it with a TOWN field when a new SITE shows up in the XML. And somehow your form has to decide when to show the subheader.

By the way: I was not able to open the second URL. I got the error message that my reader is to old - yet I have the most recent version ordinary users are able to download.

Avatar

Level 10

Hi Uli,

I would be surprised if the form I prepared for you completely matched your requirements. It is only meant to show you how to use sections as a way of nesting tables.

The section is set to repeat (see Object > Binding palette). However you can also set the Row1 to repeat as well. Then name your oblects to suit your schema.

The form I prepared is probably set to a Target Version of Acrobat/Reader v9.1. All you need to do is open the form in LC Designer and then go to File > Form Properties > Defaults and then set the Target Version to something like Acrobat/Reader v8.0. Save and then open in Reader.

Hope that helps,

Niall