About the Enhanced Application [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Self-Paced Training Guide
About the Enhanced Application
This chapter and the two following chapters describe a substantial
extension to the existing training application. You will develop the
items needed to use multiple files together in an application. This
system involves the product file and an option file.
Product/Option Application
The application involves a product/option relationship where each product
must have at least one option, and can have any number of options related
to it.
To add the new features to this application, you must create some new
screens using windows, scroll areas, and function keys. These additions
require a number of new logic blocks as well as a decision table to
support them. Finally you will create a new report that uses sort levels
and file linkages. You perform these steps in the next three chapters.
As before, the main menu allows the user to select an update mode. The
product_scrn data screen is then displayed for each mode.
When necessary, this screen uses a window to allow the user to add,
modify, or delete option records.
The screen and window appear as shown here.
product_scrn Data Screen
Function Keys.
The data screen and windows used in this part of the application have
sets of function keys that allow the user to swap between product
maintenance and option maintenance.
Scrolling Options.
At any time when a valid product record has been retrieved, the user can
press a Scroll Options function key to display the details of the
options for the current product. The option details are displayed in a
scroll area at the bottom of the screen.
Reporting.
The extensions to the application include a report that lists the details
of products and options.
The user can specify a range of products for reporting. For all products
in the specified range, the report lists the details of the products and
the options. It also calculates the cost of stock for each option, the
cost of stock for each product, and the total cost of stock for all
products listed.
Processing Rules.
The processing rules for the product/option maintenance system are as
follows:
* A product may be added or modified any time. When a product is
added to the system, a basic option must also be added. This
option must have the number "000".
* A product may only be deleted if there are no options except
option number 000 associated with it.
* When a product is deleted, option 000 must also be deleted.
* An option, other than option 000, can be added to an existing
product.
* An option may be modified at any time.
* An option, other than option 000, may be deleted at any time.
MPE/iX 5.0 Documentation