Topic Options
#30196 - 06/30/09 08:48 PM Iteration/overflow not working with data selection
-nth- Offline
OL Expert

Registered: 04/01/03
Posts: 236
Loc: Lincoln, NE
Ran into an issue with using iteration/overflow. Here's the XML file I used for testing:
Code:
<Class>
<Student>George Washington</Student>
<Student>John Adams</Student>
<Student>Thomas Jefferson</Student>
<Student>James Madison</Student>
<Student>James Monroe</Student>
</Class>  
I added a standard data selection to display the student element. I then turn on Line Repeat in its properties and tell it to iterate from 1 to 0. My exit and overflow condition is set to "=&iterationcount=2".

When I preview this, I get 4 pages (Student 1 & 2 on the first page, Student 2 & 3 on the second page, Student 4 & 5 on the third page and a blank fourth page). The iteration count isn't properly maintained.

BUT if I add that data selection to a group object and setup iteration/overflow on the group instead of the selection, I get 3 pages of output with the students in the proper order (and no blank page). This is what I'd expect.

I can also add that same data as a text object instead of a data selection object and set up iteration and overflow in the exact same way, and I also get 3 pages of output with the students in the proper order (and no blank page). Again this is what I'd expect.

Is the iteration/overflow working working properly on the data selection?

-nth-

Top
#30197 - 07/01/09 10:39 AM Re: Iteration/overflow not working with data selection
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
nth,

I tested it, and was able to reproduce this problem. I do not see why it shouldn't work on a non-grouped data selection, so this is something that I will report to our developpers.

Thanks for reporting this issue!

Regards,
Rapha

Top