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
#20813 - 10/25/07 02:10 PM Repeat over 2 pages
Jobin.G Offline
Member

Registered: 03/15/04
Posts: 68
Loc: Qu
I'm using the repeat functionality on a data selection object to have a maximum number of iteration per pages.

The number of iteration differs between the first page and the others. I'm using a function to detect when a page shift is needed :

&NbPage1 --> Number on the first page
&NbPageAutre --> Number on other pages

Code:
 
function @ChangerPage(&CurrentIteration : Integer) : Boolean
   define(&return, boolean, false)

   % Premi

Top
#20814 - 11/23/07 11:09 AM Re: Repeat over 2 pages
Anonymous
Unregistered


Hello,

First off this will only work if you have only 1 "set" per data file. You are using the &Current.PrintPage variable which will only be 1 for the very first page. If you have multiple sets in the data file this will only work for the first set.

What I would suggest doing is adding a show command in there somewhere, that way you can see if the function is being called non stop. You could also add shows in your IF blocks to see if the code in them is ever being hit. If the code in the IF blocks is not getting hit, then you know the issue lies with the condition itself.

Top


Moderator:  cosimo, OL Newsgroup Support