How Will the Modifications Look? [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Self-Paced Training Guide
How Will the Modifications Look?
Currently, the product_scrn screen is very simply defined and driven. It
doesn't allow a user to delete a record from the product file, and it
doesn't provide much operational information for the user. If the
application is HP ALLBASE/SQL based, it doesn't allow a user to update an
SQL record.
Apart from the data displayed on the screen, there is very little to
indicate that a record is being added or modified. In addition there is
no provision for trapping any file access errors that may occur.
The enhancements that you define in this chapter allow the user to
specify that a record is to be added, modified, deleted or reviewed.
The main menu will offer five choices: Add, Modify, Delete, Review, and
Report. This allows the system administrator to assign menu item
security to each menu item, limiting access to selected items for
particular users. The menu item security system is described in the HP
ALLBASE/4GL Developer Administration Manual.
The main menu is shown here.
Modified Main Menu for Training Application
How Will the Modifications Look? (Continued)
This menu allows the user to select the following options.
Operation Description
Add Add a product.
Modify Modify an existing product.
Delete Delete a product.
Review Review a product.
Report Report on a product.
The Application Screens.
When the user selects an option from the main menu, the appropriate
update mode is set. The product_scrn data screen is then displayed for
each mode.
product_screen Screen
In addition, when records are added, modified, deleted, or reviewed the
user will receive messages that indicate whether the task was successful
or not.
Application Structure
The following diagram shows the structure of the extensions to the
application.
Each menu item calls a function. These functions set the appropriate
mode by initializing a variable. Each function then calls the
product_proc process.
The process displays the product_scrn screen.
The first lesson introduces you to additional dictionary items that you
will need to use in the new functions you will create in lesson 14.
MPE/iX 5.0 Documentation