AFP Forum

General Category => General Discussion => Topic started by: lukejea on July 14, 2021, 10:28 AM

Title: How to overcome 255 layout limit in PPFA code
Post by: lukejea on July 14, 2021, 10:28 AM
We have reached the PPFA layout limit. There is a max limit of 255 layouts in PPFA code. We maintain about a 1000 different forms and all these forms are defined using the layout command in PPFA. In our data file any one of these forms can be printed so there's no way for us to split the PPFA file. Is there a way to increase the limit? Here is an example of our code

Code: [Select]
PAGEDEF placeholder replace yes
     WIDTH 8.5 in
     HEIGHT 11 in;

PAGEFORMAT  placeholder
     DIRECTION back;

LAYOUT C'mylayout1' BODY
  POSITION .25  in ABSOLUTE .25 in
  FONT TIMES
  OVERLAY MYTEMPOVER1  8.5 in 11.0 in;
  FIELD START  1 LENGTH 60
  POSITION 2.0  in 1.6  in;

LAYOUT C'mylayout2' BODY
  POSITION .25  in ABSOLUTE .25 in
  FONT TIMES
  OVERLAY MYTEMPOVER2  8.5 in 11.0 in;
  FIELD START  1 LENGTH 60
  POSITION 2.0  in 1.6  in;

...

LAYOUT C'mylayout254' BODY
  POSITION .25  in ABSOLUTE .25 in
  FONT TIMES
  OVERLAY MYTEMPOVER254  8.5 in 11.0 in;
  FIELD START  1 LENGTH 60
  POSITION 2.0  in 1.6  in;

As you can see there are about 255 layouts. If I add another layout I'll get an error when I compile the PPFA. Is there a way around this?
Title: Re: How to overcome 255 layout limit in PPFA code
Post by: Jörg Palmer on July 15, 2021, 07:12 AM
Hey Luke, I don't have a solution right now, but just wanted to give you confidence someone is reading your message. I will try to find an answer ... 
Title: Re: How to overcome 255 layout limit in PPFA code
Post by: lukejea on July 15, 2021, 09:50 AM
Hey Luke, I don't have a solution right now, but just wanted to give you confidence someone is reading your message. I will try to find an answer ...

Excellent, thanks
Title: Re: How to overcome 255 layout limit in PPFA code
Post by: JB Condon on August 16, 2021, 11:34 AM
Luke,
PPFA is still a supported product, so you should open a customer support request -- either with IBM (if you are running PPFA on a mainframe) or with Ricoh (if you are running PPFA on a workstation). The product service team can then let you know if they have any suggestions about how to handle this limit.
Best Regards,
Jack
Title: Re: How to overcome 255 layout limit in PPFA code
Post by: RogerBolan on November 23, 2021, 05:39 PM
Hello,
I know I am posting to an old thread, but I haven't been following this new 'forum.
It looks like your LAYOUT records are the same except for the name of the overlay. 
See page 384 in the PPFA PDF ib6pug13.pdf  (at least that is the copy I'm reading).
The name of your OVERLAY can be a VARIABLE with the name read from the record data.
If you can put the name of the overlay into your data, you could use many fewer LAYOUT definitions.
--Roger
Title: Re: How to overcome 255 layout limit in PPFA code
Post by: lukejea on June 04, 2022, 09:24 AM
How would I exactly do that? Can you give an example of the line data and ppfa? I am using the record id line data