cancel
Showing results for 
Search instead for 
Did you mean: 

Table with more lines per data element

Former Member
0 Kudos

Hi experts,

i have some questions with adobe forms.

I got a table with many positions like that:

POSNRLINE1_1LINE1_2LINE2_1
LINE2_2LINE3_1LINE3_2
0001POSNR1_LINE1_1POSNR1_LINE1_2POSNR1_LINE2_1POSNR1_LINE1_2POSNR1_LINE3_1POSNR1_LINE3_2
0002POSNR2_LINE1_1POSNR2_LINE1_2POSNR2_LINE2_1POSNR2_LINE2_2POSNR2_LINE3_1POSNR2_LINE3_2

The result in the printing PDF should look like this:

POSNRLINE1LINE2
0001POSNR1_LINE1_1POSNR1_LINE1_2

POSNR1_LINE2_1POSNR1_LINE2_2

POSNR1_LINE3_1POSNR1_LINE3_2
0002POSNR2_LINE1_1POSNR2_LINE1_2

POSNR2_LINE2_1POSNR2_LINE2_2

POSNR2_LINE3_1POSNR2_LINE3_2

I have implemented following solution

  • subform
    • table
      • header
      • grouping (repeat for every element)
        • line 1
          • LINE1_2 (Data binding)
          • LINE1_2 (Data binding)
        • line 2
          • LINE2_1 (Data binding)
          • LINE2_2 (Data binding)
        • line 3
          • LINE3_1 (Data binding)
          • LINE3_2 (Data binding)

My problems now are:

  • how to get a pagebreak if not all 3 rows of a position fit on the same page
  • how to achive a zebra look that always 3 rows have the same color and the next 3 a different one

Is there a better way to structure these elements?

Best regards,

Philip

Accepted Solutions (0)

Answers (3)

Answers (3)

pavan_prabhu
Active Participant
0 Kudos

Hello Philip,

     As Naveen and Xiangli said, To get a page break uncheck the check box "Allow Page Breaks within Content" for data Row. It works.

Former Member
0 Kudos

Hi Philip,

I assumed your table structure is same as shown in your first table

0001POSNR1_LINE1_1POSNR1_LINE1_2POSNR1_LINE2_1POSNR1_LINE1_2

Use subform as table method, and organize your each row as layout below:

POSNRLINE1_1LINE1_2

LINE2_1LINE2_2

LINE3_1LINE3_2

Create this subform namely as rowSubform to hold 7 fields of your record.

Uncheck Object palette > Subform tab > "Allow Page Breaks within Content" option for this subform.

Sample on how to create subform as table

http://saptechnical.com/Tutorials/AdobeForms/Table/Create.htm

To do alternative color on each POSNR, you might want to use code to assign alternative color in rowSubform initialize event.

Code to change color.

http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000833.html

Hope this helps.

regards,

Xiang Li

navip
Active Participant
0 Kudos

Hi Philip,

To get a pagebreak unchek the check box "Allow Page Breaks within Content" for every Row.

-Naveen