Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Page Count in Overflow Leader

Avatar

Former Community Member
I need to put a page counter in the overflow leader for a subform. For example, the first page will say 1. If the data overflows, it says 2, etc. This is not the same thing as the page number of the document.



I've tried putting a floating field in the overflow leader subform using



>this.rawValue = this.rawValue+1



to use it as a kind of counter. This works in Designer in preview mode. However, when I merge xml data with the xdp using Output ES I get varying incorrect answers depending on which event I put the script in.



Is there a better way to do it? I thought using the instanceManager might help, but that only returns one instance regardless of the number of pages, so I don't think that will work either.
3 Replies

Avatar

Former Community Member
Not sure I follow what you are trying to do.....Can you post an example at livecycle8@gmail.com



Thanks

Avatar

Level 2
Please post a summary of the solution - just so the rest of us have an idea.

Avatar

Level 1

I have the same issue please post the solution

I want to create multiple documents in one report

each document page number start from 1

Basicly I need to create a counter with a condition.