Using VPLUS: An Introduction to Forms Design (32209-90004)

3-1
Chapter 3 Simple Editing
The ORDFORM1 forms file, as it is currently designed (refer to Section
2), accepts any data entered by the user or allows the user to leave all
fields blank. This section shows how to modify the forms file to add
simple field type and data type edits that cause standard checks to be
performed on entered data.
For the user, this section shows how to correct errors detected by ENTRY
and also shows how to browse through the data records entered in the
batch file.
Using FORMSPEC Using ENTRY
* Locate an existing form (Main Menu) * Request the forms file and
a new batch file
* Change the form name (Form Menu) * Change the initial value
* Add fields to the form (Form Layout Menu) * Enter data in edited fields
* Specify simple edits (Field Menu) * Observe the enhancement of
fields in error
* Change the field name (Field Menu) * Correct errors
* Change the field type (Field Menu) * Use BROWSE to go to Browse
mode
* Assign an initial value (Field Menu) * Use FIRST REC, NEXT REC,
and PREV REC
* Change the date type (Field Menu) * Review entered data
* Change the numeric type (Field Menu) * Use COLLECT to return to
Collect mode
_________________________________________________________________
| |
| :
RUN FORMSPEC.PUB.SYS |
_________________________________________________________________
Figure 3-1. The Forms File Menu
Run FORMSPEC
In this exercise, using FORMSPEC, you add fields to the form you created
in Section 2. You then define simple edits for several fields in the
form.
Action
Run FORMSPEC as shown in Figure 3-1. Press RETURN to transmit the
command to MPE.When FORMSPEC issues the Forms File Menu, specify the
name of the forms
file (ORDFORM1), as shown in Figure 3-1. Press ENTER to transmit your