Progress
Results User’s Guide
for UNIX


Determining the Fields Selected for Reports

Use the following shared variables in your Progress procedures to determine the selected fields in the report or export session. These variables also enable your program to access any calculated fields end users define.

DEFINE SHARED VARIABLE qbf-rc#     AS INTEGER              NO-UNDO.
DEFINE SHARED VARIABLE qbf-rcn     AS CHARACTER EXTENT  64 NO-UNDO.
DEFINE SHARED VARIABLE qbf-rcc     AS CHARACTER EXTENT  64 NO-UNDO.
DEFINE SHARED VARIABLE qbf-rca     AS CHARACTER EXTENT  64 NO-UNDO.
DEFINE SHARED VARIABLE qbf-rcl     AS CHARACTER EXTENT  64 NO-UNDO.
DEFINE SHARED VARIABLE qbf-rcf     AS CHARACTER EXTENT  64 NO-UNDO.
DEFINE SHARED VARIABLE qbf-rcw     AS INTEGER   EXTENT  64 NO-UNDO.
DEFINE SHARED VARIABLE qbf-rct     AS INTEGER   EXTENT  64 NO-UNDO.
DEFINE SHARED VARIABLE qbf-dtype   AS CHARACTER            NO-UNDO. 

These shared variables have the following characteristics:

Use these shared variables to determine the fields users selected in their report or export session, and to access any calculated fields defined in the report.

This is a sample code that lists the subtotal attributes for fields in a report:

This section searches for attributes using the symbols in Table 10–4 and builds the aggregate expression.

You can use this code as an example when you write your own code. The comments in this code will help guide you.


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