HP 3000 Manuals

Running the Module [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation


HP ALLBASE/4GL Developer Self-Paced Training Guide

Running the Module 

You can now test the order module by selecting the Test option from the
developer main menu.

When you select the Order Details option from the training application
main menu, the following screen is displayed:

[]
Order Maintenance Screen Using the Module The order maintenance module allows you to add new records, and delete or modify existing records in the file. Each action is performed when the module is in the corresponding mode for the action. The current module mode is displayed in the label for the Mode function key, located in the bottom left corner of the screen. The mode indicates the type of change that will be made to the file when you press the Commit Data function key. HP ALLBASE/4GL automatically sets the mode based upon your previous action. If you enter an order number that does not currently exist, the mode will change to Add. If the order number does exist, the mode will change to Modify. You can then change the mode by pressing the Mode function key. This module has three possible modes: add, modify, and delete. (Depending on the type of file, and whether the file records have a unique primary key, some modules may not provide all three modes.) When you first enter the resultant screen, the mode is set to add. Add some records, then try to modify or delete them. The help screens provided with the module may give you some assistance in using the screen. Test what happens when you enter an invalid product number. (A valid product number is defined as XY1000 to XY9999.) Retrieving an Existing Record File scanning allows you to select the first, next, previous, or last record from the file. All scanning is controlled with four function keys: Previous Record , Next Record in the main keys set, and First Record , and Last Record which are displayed if you press the More Keys function keys. Because the order record layout allows unique primary key values, you can use keyed access to retrieve a specific record. This is done by entering a value in the key field and pressing Return. HP ALLBASE/4GL attempts to locate and display a record with a matching key value. This is a full key read of the main file, and is available whenever the cursor is in the key field. If a record is located, you can access records with key values adjacent to that entered by pressing the Previous Record and Next Record function keys. You can then modify the retrieved record, or add a new record if no record is found. Once you have created a number of records, use the file scanning keys and the keyed access method to display different records.


MPE/iX 5.0 Documentation