Highlighted

Alternating Table Rows - Complex tables

Avatar

Guest

28-10-2008

Hi,

I am trying to display a dynamic table in my PDF. The logic that creates the pdf bindings is basically 2 for loops. Think of a table that has rows that expand. Each expandable row is a "Main Row" and each expanded row is an "indented row".

This is the desired look of the PDF table:
---------------------------------------------------------------------
Main Row 1
---------------------------------------------------------------------
Indented Row 1.a
---------------------------------------------------------------------
Main Row 2
---------------------------------------------------------------------

I created a pdf template with LiveCycle Designer that has a table, with two dynamic rows. the top row displays the non-expanded information. The bottom row holds the expanded information. Please view this xml for an example:

160112089
07/15/08
Membership Dues
HQ98066
$29.00
$29.00
$0.00
04/28/08
10/28/08

Auto Withdrawal
07/15/08
Payment Received - thank you
HQ98066

156813569
06/15/08
Membership Dues
HQ98066
$29.00
$29.00
$0.00
04/28/08
10/28/08

This is what I am getting

---------------------------------------------------------------------
Main Row 1
---------------------------------------------------------------------
Main Row 2
---------------------------------------------------------------------
Indented Row 1.a
---------------------------------------------------------------------

Is there any way to force the pdf template to display the xml as it is presented?

Thanks for any advice!

Erik

Replies

Highlighted

JohnBrinkman

06-11-2008

Try this:



1. Wrap your main row and indented row in a subformSet.

2. Mark the subformSet as repeating

3. Mark your main row and indented row subforms as "not repeating"

4. Make sure your subformSet type is: "select one subform from alternatives"



John

http://blogs.adobe.com/formfeed/