Using the Module Builder Screen [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Self-Paced Training Guide
Using the Module Builder Screen
You are now ready to use the module builder to build the resultant screen
and associated logic needed to allow users to access the order file.
To access the module builder screen, choose Module Builder from the main
menu. HP ALLBASE/4GL displays the module builder screen shown below.
Module Builder Screen
Description
You use the module builder screen to specify the essential information
required by the module builder to create the order module. This screen
requires you to specify the main file name, along with a record layout
name and an index field name. The module uses the specified record
layout and index field to access the main file.
To enter the field values:
Field Entry Explanation
---------------------------------------------------------------------------------------
Module Name order This name is used by the module builder in
the names it gives most application items
it creates for the module. The naming
conventions used by the module builder are
described in the HP ALLBASE/4GL Developer
Reference Manual.
Type Accept the default of There are two possible module types:
M. maintenance and inquiry. A maintenance
type module allows the end user to view and
modify the information in the file. An
inquiry type module only allows the end
user to view the file.
Main Access: File order This field specifies the file you defined
earlier as the main file to be accessed by
the module for viewing or maintenance.
Record Accept the default. This is the record layout used to access
the file. HP ALLBASE/4GL automatically
enters the default record layout.
This field is bypassed for HP ALLBASE/SQL
tables, because each table can only contain
one record layout.
KSAM files and HP TurboIMAGE/iX data sets
may contain more than one record layout.
If you are developing your application
based on either of these data managers,
accept the default value of order.
Table 8-0. (cont.)
Field Entry Explanation
---------------------------------------------------------------------------------------
Index Accept the default of This is the name of the field used to
order_no. locate an individual record within a file.
This value defaults to the primary index
for the file.
Include All Fields Accept the default of This tells the module builder to include
Y. all fields listed in the record layout in
the resultant screen. If you enter N, you
must use the module details screen to
define which fields from the record
lafuyout you want in the resultant screen.
The module builder always includes the
index field in the resultant screen.
To complete and commit the screen:
1. Press the Commit Data function key when you have completed the
module builder screen.
HP ALLBASE/4GL displays a message asking you either to specify
details on the module details screen or to generate the module.
_________________________________________________________________
NOTE At this point you could generate the module, provided you
specified Y at the Include All Fields prompt. Module
builder would attempt to place all the fields in the record
layout on the resultant screen, and there would be no links
to secondary files. However, in this lesson you will access
the module details screen to add the links to the secondary
file.
_________________________________________________________________
2. Press the Specify Details function key to display the module
details screen.
MPE/iX 5.0 Documentation