HP 3000 Manuals

Testing a Report [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation


HP ALLBASE/4GL Developer Self-Paced Training Guide

Testing a Report 

There are two possible ways to test this report.  The quickest method is
to go into Test mode and use the developer menu bypass facility to
execute any item from a menu.

A second way is to create a menu item on the main menu of your
application to run the report.  Both methods are described here.  Try
both methods.

Testing by Menu Bypass 

This is the quick way available to you as a developer.  This method is
not available to end users.

From the developer main menu, follow the steps below to test the report:

Action                    Explanation 

------------------------------------------------------------------------------

Activate Test             This starts up your application in developer
                          testing mode.

Press / and then press    This is the developer menu bypass facility command.
Return                    You are prompted for the action you wish to
                          execute.

Type R-product_rept       This refers to the report R- product_rept that have
                          just created.

Press Return              This executes the product_rept report.

When the report commences, HP ALLBASE/4GL displays a message stating that
the report is being prepared.  The report is then displayed on the
screen.  When the report is finished, the menu screen is redisplayed.

Testing from a Menu 

This is an alternative way of running the testing procedure.  It involves
creating a new menu item on the main application menu to execute the
reprot.

To do this, start up the screen painter and follow these steps:

Action                    Explanation 

------------------------------------------------------------------------------

Enter main                This is the name of the screen that you want to
                          modify.  The painter displays the screen in its
                          current state.

Press  Main Keys          This displays the main painter keys.

Move cursor to line 9,    This provides adequate spacing away from the prompt
column 32                 that is already there.

Press  Action             This displays the action item prompt at the base of
                          the screen.

Enter R                   This retrieves the report action and then moves the
                          cursor to the next field.

Enter product_rept        This creates an action item that executes the
                          product_rept report.  The prompt is the short
                          description of the report from the report header
                          screen.

Press Return              This terminates the creation of the action item
                          prompt.

Enter Product Report      This creates the text for the action item prompt.

Press  Exit               This saves the screen and exits from the painter.

Having created this menu item, activate the Test option on the developer
main menu and run the report by activating the report option on the
application menu.

When the report commences, HP ALLBASE/4GL displays a message stating that
the report is being prepared.  The report is then displayed on the
screen.  When the report is finished, the application main menu is
redisplayed.



MPE/iX 5.0 Documentation