Progress
Report Builder
Deployment Guide
Generating a List of Reports, Prompting the User to Select Which Reports to Run, and Running the Reports
The
rblist2.p
sample procedure generates a list of all the reports in therbsample.prl
report library, prompts the user to specify which reports to run, then runs the reports. This procedure assumes that all of the reports in the list generated by_getname.p
use the Sports database. Report Engine connects to the database only once on startup, and the same connection is used for each report since the ’=>’ syntax is used in the RB-DB-CONNECTION field of the RBREPORT table.To run the
rblist2.p
procedure with therbsample.prl
report library, execute the following command:
Here is the
rbplist2.p
procedure:
The commented numbers correspond to the following step-by-step descriptions:
- Define the variables used in the procedure.
- Define the input parameter to the procedure.
- Define the user-answer variable to handle the user’s input.
- Run
_getname.p
to generate a list of reports in the specified library.- Prompt the user and add the selected reports to the Runtable database.
- Run the selected reports, then delete the table records.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |