Applies to: posted in the Clarion 6 group (the poster signed with a CW EE build number); the thread does not name a template chain.
Problem
A poster wanted an embed in the report designer that decides whether a line prints. if rpt:bal_total = 0 then cycle and the commands break and exit were not allowed in any embed he tried. He first said detail, then said it was a footer.
Solution
For a detail band, three posters gave the same idea: do not let the band print by default, then print it yourself.
- Set a filter of 0 on the detail band (one poster posted a picture of where), or, as another put it, turn the detail's print off and use
PRINT(?DetailLine)with the band's control. - In the TakeRecord embed, print the band only when the condition holds:
If Condition Print(RPT:Detail) End - A further variant: in ValidateRecord
RETURN Record:Filteredwhen the record should not print, and in the TakeRecord embed before the PRINT(Rpt:Detail) statementRETURN Level:Benign. TheDonotPrintname in that post was an invented stand-in for your own condition.
Caveats
- The poster could not find where to set the filter of 0 and the picture is not in the archive.
- A reply said not printing a footer is trickier than a detail and advised practising on a detail first. The thread gave no footer answer.
Today (2026)
Likely holds for details. Footers are unsettled here. Not re-tested.
Sources: Raul R. (Feb 2009, the question), Mauricio, Abe J., Geoff B. (Feb 2009) in softvelocity.public.clarion6.