Progress
Report Builder
Deployment Guide


Running a Report with a Simple Filter Override

The rbfilt3.p sample procedure runs the Customer Discount report in the rbsample.prl report library with the specified filter override:

rbfilt3.p
RUN aderb\_printrb(
  "c:\dlc\src\aderb\rbsample.prl",   /* RB-REPORT-LIBRARY */
  "Customer Discount",               /* RB-REPORT-NAME */
  "",                                /* RB-DB-CONNECTION */
  "O",		/* RB-INCLUDE-RECORDS - letter O */
  "IN-LIST(Order-Line.Discount,
  10,15,35) > 0",                /* RB-FILTER */
  "",                                /* RB-MEMO-FILE */
  "D",                               /* RB-PRINT-DESTINATION */
  "",                                /* RB-PRINTER-NAME */
  "",                                /* RB-PRINTER-PORT */
  "",                                /* RB-OUTPUT-FILE */
  0,                                 /* RB-NUMBER-COPIES - zero */
  0,                                 /* RB-BEGIN-PAGE - zero */
  0,                                 /* RB-END-PAGE - zero */
  no,                                /* RB-TEST-PATTERN */
  "",                                /* RB-WINDOW-TITLE */
  yes,                               /* RB-DISPLAY-ERRORS */
  yes,                               /* RB-DISPLAY-STATUS */
  no,                                /* RB-NO-WAIT */
  "").                               /* RB-OTHER-PARAMETERS */ 

Notice that the procedure specifies all nineteen of the PRINTRB interface parameters in the order in which they appear, even though it overrides only the filter condition values.

NOTE: If you are using the PRNTRB2 interface you must modify the procedure to run aderb\_prntrb2 and include the RB-STATUS-FILE parameter.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095