|
Insert a Report
|
Previous Top Next |
(* RPM Options Required)
(click a tab) Tired of trying to figure out how to get multiple page layouts into the same report? Now you can, easily! For example consider you have a report that breaks on customer, like an invoice report, and you want to provide the option to your end user to include an advertisement for each customer and maybe a "hey deadbeat, pay your bill" message for those who are late making their payments. That's easy to do with rpm_InsertReport. Add a local variable: BreakVar LIKE(<your break variable>) Drop in one or more rpm_InsertReport templates as LOCAL ROUTINES Add a bit of source before printing details: IF NOT BreakVar BreakVar = <your break variable> ELSIF BreakVar <> <your break variable> DO <one or more of the routines> BreakVar = <your break variable> END That's it!
(click a tab) As noted, you must have preview turned on for this report and each report you insert must use the rpm_ShuffleChainedReport template. Report to insert: Select the report procedure to insert. Cancel entire report if inserted report is EMPTY? will cancel and return if an inserted report was not generated. Show report error message? is available only when the option above is enabled. This will display a message to the user if this report fails due to an empty inserted report. Additional call parameters: (not required) provides a means to pass other information in addition to the required queue, such as a range value. Parameter setup: (not required) is a literal line of code inserted just before the call to insert the report. This is provided so you can update a passed parameter, if needed, prior to calling the inserted report. <IF> conditional wrapper: (not required) provides a means to wrap the call to the inserted report within a logic statement. You can include the "IF" or leave it out and the template will add it for you. An example of using the <IF> wrapper... IF <customer is late paying> ...so that only those customers who are late get the "hey deadbeat, pay your bill" message inserted within the report.
(click a tab) |