` Conditional Page Breaks in reports (Carl Broll ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Conditional Page Breaks in reports
1999-12-14 -- Carl Broll
 
Assuming that you have a group break for the department, you can set or clear PROP:PageAfter of the group footer. For example: SETTARGET(Report) IF UserWantsDepartmentsSeparated ?DepartmentBreakFooter{PROP:PageAfter} = True ELSE ?DepartmentBreakFooter{PROP:PageAfter} = False END SETTARGET Actually, if you leave the group footer's "Page after" checkbox unchecked in the AppGen report formatter you should only need: SETTARGET(Report) IF UserWantsDepartmentsSeparated ?DepartmentBreakFooter{PROP:PageAfter} = True END SETTARGET Steve Gallafant adds: My personal preference for this code (not nearly as readable but definitely nifty) is Report$DepartmentBreakFooter{PROP:PageAfter} = UserWantsDepartmentsSeparated assuming UserWantsDepartmentsSeparated will evaluate correctly for the PROP assignment.


Today is November 21, 2024, 3:42 am
This article has been viewed 35214 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: