Consultor Eletrônico



Kbase P90877: Example of 4GL code to extract COUNT and NAME attributes of a Report Builder .PRL file
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/22/2005
Status: Unverified

GOAL:

Example of 4GL code to extract COUNT and NAME attributes of a Report Builder .PRL file.

GOAL:

How to use the 4gl to obtain a list of report names from a Report Builder .PRL file.

GOAL:

How to use the 4gl to obtain a count of the number of reports in a Report Builder .PRL file.

FIX:

The following code returns the number of reports and each of the reports names from the Report Builder .PRL file:

DEF VAR report-count AS CHAR FORMAT "x(80)".
DEF VAR report-list AS CHAR FORMAT "x(80)".
DEF VAR i AS INT.

RUN aderb/_getname.p ("<Path to .PRL file>", OUTPUT report-list, OUTPUT report-count).

REPEAT i=1 TO NUM-ENTRIES(report-list):
DISPLAY ENTRY(i, report-list, ",") FORMAT "x(40)".
END.

DISPLAY "Count of Reports: " + report-count FORMAT "x(30)".