Thanks for your response, Marten. I’m not sure how to apply your suggestion to solve the issue. So far, I’m able to generate the extra pages as needed in the template, using record.index %3, but figuring out how many pieces I have in the tray still escapes me. I’ve been searching for a variable where I can store the count of records since the last tray, or a counter I can reset after a tray break is seen, but I’m not having any luck. The value that I really need is (recordsInThisTray % 3). Understandably, the datamapper is very focused on “this current record”. Is there a method for storing a value when ### is seen that I can access as later records are processed? Very similar to the issue I see over in this thread too. Carry value of field to next record.
Thanks,
Jim