Basic report demonstration
- Last Updated: January 17, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
Basic report demonstration
This section provides a basic report demonstration.
To see a demonstration of ABL behavior when displaying a report to your screen:
- Open i-10-01.p and
run it. The ABL Virtual Machine (AVM) creates a down frame that
occupies all the vertical space it can and fills the frame with
iterations of data. For example:

Notice the message at the bottom of the screen. the AVM pauses to allow you to view the first frame of data.
- Press SPACEBAR. The AVM clears the down frame and fills it with a new set of iterations.
- Press END-ERROR and then SPACEBAR to return to the Procedure Editor. Here is the code for this example:
i-10-01.p
|
Note: The
THREE-D option
is relevant only on a Windows client; it is ignored by a character
client.The following notes help to explain the code:
- The default data widget for this
LOGICALvariable is a toggle box, making theVIEW-AS TEXTphrase necessary to convert it to a text widget. - The frame phrase of the
DEFINE FRAMEstatement contains two key options:DOWNandUSE-TEXT. TheDOWNkeyword specifies a down frame that automatically expands to fit as many iterations as the screen can hold. Specifying an integer beforeDOWNsets the maximum number of iterations the frame can hold.USE-TEXTconverts all fill-in fields into text widgets for a compact display. - Since the great majority of reports compile and manipulate table data,
the
FOR EACHstatement is the most common control block used for report procedures. The frame phrase here replaces the default down frame with the named down frame defined earlier. - The
DISPLAYstatement is the most commonly used output statement. As you'll see later,DISPLAYcan output to terminals, printers, or files.
The type of report display created by procedure i-10-01.p does not fit well with the event-driven model because the user:
- Does not control the display of data
- Can view data in only one direction
- Does not have an intuitive way to dismiss the report
Designing an interface for viewing report data describes a technique for viewing reports that better suits the event-driven model.