IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#34542 - 01/14/11 03:12 AM Adding text at the bottom of the first oveflow pg
kigo Offline
OL Newbie

Registered: 07/06/10
Posts: 29
Loc: Kenya
Hi There,

Am designing a Current account bank statement and I have grouped Five data selectors(Transaction date,Transaction detail,money out,money in,Balance) with line repeat condition and an overflow after every 20 lines.I want to be able to insert text(Balance C/FWD) at the bottom of the page before it overflows to the other page indicating the amount to be carried forward to the next overflow page(The balance indicated on the last line before overflow).I also want to include an extra line at the beginning of the next overflow page indicating the Balance B/FWD(The amount indicated at the bottom line of the first page before overflow) from the previous page.Does anyone know how to fix this.Please assist.

Top
#34548 - 01/14/11 09:25 AM Re: Adding text at the bottom of the first oveflow pg [Re: kigo]
Eric Lachance
Unregistered


kigo,

The way I would do it is to add a PressTalk object to your repeating group that writes to a global variable using the current line balance. The following is an example that you could use, assuming that the global variable is called "LastBalance" and your balance is located at @(&current.line, 10,5):

Code:
&LastBalance := @(&current.line, 10,5)


Then, if you want to display the total, you can just create a Data Selection object below your repeating group, check "Custom Data Selection" and use the following:

Code:
='Balance C/FWD :' + &LastBalance


The same can be done on the overflow pages at the beginning:

Code:
='Balance B/FWD :' + &LastBalance


However, in order for Balance B/FWD not to appear on the first page, you will need to add a condition to it where it only appears on overflow pages: =&current.overflowing

Just make sure that your Balance C/FWD object is located AFTER the repeating group in the document structure on the left, and Balance B/FWD is located BEFORE it.

Top
#34718 - 01/27/11 04:44 AM Re: Adding text at the bottom of the first oveflow pg [Re: ]
kigo Offline
OL Newbie

Registered: 07/06/10
Posts: 29
Loc: Kenya
This worked like charm

Top