Grouping overflow pages

Posted by: svenDoxer

Grouping overflow pages - 07/28/21 09:11 AM

Hi everybody, I hope that someone with more experience could help me with the following problem:

I'm having the following output from my form designer:

Page 1 (No overflow)
--------
Page 2.1 (with Overflow group)
--------
Data page 2 (fst overflow page 2)

Page 3.1 (with Overflow group)
--------
Data page 3 (fst overflow page 3)

Page 4.1 (with Overflow group)
--------
Data page 4 (fst overflow page 4)

Page 2.2 (with Overflow group)
--------
Data page 2 (snd overflow page 2)

Page 3.2 (with Overflow group)
--------
Data page 3 (snd overflow page 3)

Page 4.2 (with Overflow group)
--------
Data page 4 (snd overflow page 4)

But my desired output is:

Page 1 (No overflow)
--------
Page 2.1 (with Overflow group)
--------
Data page 2 (fst overflow page 2)

Page 2.2 (with Overflow group)
--------
Data page 2 (snd overflow page 2)

Page 3.1 (with Overflow group)
--------
Data page 3 (fst overflow page 3)

Page 3.2 (with Overflow group)
--------
Data page 2 (snd overflow page 2)

Page 4.1 (with Overflow group)
--------
Data page 4 (fst overflow page 4)

Page 4.2 (with Overflow group)
--------
Data page 4 (snd overflow page 4)

What have I done so far:

The first page has the following condition:
=&current.overflowcount = 0
and the other pages has no conditions, how could I achieve the desired output?
All my other pages are physical pages, I understand the meaning of the following variables but honestly I could not figured out how use them:
&current.overflowcount
&current.overflowing
&current.iteration
&iterationcount

If anyone could guide me, the help will be really apreciated. Greetings!
Posted by: MartinS

Re: Grouping overflow pages - 07/28/21 11:52 AM

so you have 4 data pages and each data page is printed on a different layout page (i.e. data page #1 on layout page #1, data page #2 on layout page #2), and each data page may overflow?
Posted by: svenDoxer

Re: Grouping overflow pages - 07/29/21 10:35 AM

Thanks for the response!, and yes, I have diferents layouts with overflow, here is my template design structure:

[img:center]https://postimg.cc/k64x7KYw[/img]

Here is my resulting output:

[img:center]https://postimg.cc/m1SFBZf3[/img]

What is my desired result:

Page 1 (all overflow for 1 together)
Page 2 (all overflow for 2 together)
Page 3 (all overflow for 3 together)

What I have tried in a very naivee way was turning off page 2 and 3 setting: condition: =false
under this case the page 1 outputs ok (page 1 overflow 1, page 2 overflow 2, ...)

How could I aproach this situation?


and again thanks for the response.
Posted by: MartinS

Re: Grouping overflow pages - 07/29/21 11:31 AM

thanks for your pictures.
Obviously you have XML input data with transactional data, but the structure of these data isn't quite clear for me.

I understand that each of your pages Plan1, Plan2 and Plan3 is using overflow, but it's not clear what data you need to overflow for each of these pages, obviously different parts of transactional data.

I think that's doable, but it needs a lot more investigation and testing, and also may need some scripting, so guess that's beyond what this forum can provide, so prabably better to get in contact with the OL support team of your region (if you're unsure who this is visit the Objectif Lune homepage and find it out).
Posted by: Paul L

Re: Grouping overflow pages - 07/30/21 11:57 AM

Good morning,

I think I may have a solution for you because I have a similar template - maybe.

Page 1 is uses condition "=&current.overflowcount = 0"
Page 2, which included the overflow object, has no condition.
Page 3, which is a static page AFTER the overflow object, has the condition "=not(&current.overflowing)"
Page 4, which is also a static page AFTER the overflow object, has the condition "=not(&current.overflowing)"

This means that page 1 will print when there is no overflow.
Page 2 will always repeat with the next set of overflow items.
Page 3 and Page 4 will only show when all items from the overflow have completed.

I hope this helps out.

Paul L.

Edit: Looking at your images closer, I'm wondering if you could set a condition "=&current.datapage = 1" for page 1 and "=&current.datapage = 2" for page 2, etc.