Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
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 23, 2024, 2:21 am This article has been viewed 35218 times.
|
|