Applies to: ABC report templates; the poster wrote that it worked in CW2 and went wrong in C55 (thread posted in the Clarion 5.5 group).
Problem
A filled queue has to be dumped, entry by entry, into a report. Detail1 comes from the standard ABC report template, and each Detail1 record builds a queue that Detail2 must print. The CW2 embed points the poster used were orphaned in C55, and using the queue's Next method gave no result.
Solution
- In the report properties set the Filter of Detail2 to False, so the template never prints it by itself.
- Print the queue yourself right after the template's own PRINT(RPT:Detail1), in the TakeRecord embed of the window manager (the thread names an embed around priority 8001, after Print(RPT:Detail)).
- Loop over the queue, and GET each entry before the PRINT. Without the GET only the last record printed:
LOOP i# = 1 TO RECORDS(MyQueue)
GET(MyQueue, i#)
! assign the queue entry to the local variables the Detail2 strings use
PRINT(RPT:Detail2)
END
FREE(MyQueue)
- FREE the queue after the loop if each Detail1 record starts a new one.
Caveats
- The first reply suggested a hand-coded source template with OPEN(REPORT), the same loop and CLOSE(REPORT); the poster said his case was more complex because Detail1 comes from the standard template.
- The poster did not report back after the final GET fix.
- The embed point names are the thread's wording and may differ in the template version you use.
Today (2026)
Likely unchanged for ABC reports: a detail band that is not filtered in is still printed from code with PRINT. Not re-tested.
Sources: Michael R. (Aug 2001, the question), Ralf S., Steve P., Klaus H., Dave P. (Aug 2001) in softvelocity.products.c55ee.