Skip to Content
0
Former Member
Mar 01, 2010 at 11:40 PM

Conditional page break with multiple conditions

174 Views

Hi,

have not found anything in the forum, so i hope its not a repost.

I print a table and need a pagebreak before every new record.

That sounds easy, so I used:

Report.KeyfigureDetails.Container.KFUID ne Report.KeyfigureDetails.Container[-1].KFUID

Its works well BUT it does not inserts a page break BEFORE the very first record even if I say its "before" and "top of next page".

So I used:

(Report.KeyfigureDetails.Container.KFUID ne Report.KeyfigureDetails.Container[-1].KFUID) or 
(exists(Report.KeyfigureDetails.Container[-1].KFUID) = 0)

Result: No pagebreak at all. There must be a error inside my statement.

I used two conditions. one with

Report.KeyfigureDetails.Container.KFUID ne Report.KeyfigureDetails.Container[-1].KFUID

and one with

exists(Report.KeyfigureDetails.Container[-1].KFUID) = 0

But again no pagebreak BEFORE the very first line.

What am I doing wrong? I just want to have a break before every record, even the first one.

I am using formcalc. If a conditional pagebreak in java does not need the form to be interactive/dynamic such a solution would be appreciated as well. I just want the form to be 100% static to avoid additional licenses.

Thanks!