HP 3000 Manuals

REVIEW VALUES TRANSFERRED BETWEEN FORMS [ USING VPLUS/V AN INTRO. TO FORMS DESIGN Self-Paced Training Guide ] MPE/iX 5.0 Documentation


USING VPLUS/V AN INTRO. TO FORMS DESIGN Self-Paced Training Guide

REVIEW VALUES TRANSFERRED BETWEEN FORMS 

Now use ENTRY to see the order number incremented and other values
transferred between forms.

Action 

Run ENTRY and specify the forms file, ORDFORM1.  Use a new name for the
batch file since ORDFORM1 has been changed and recompiled.

ENTRY will display the first form, ORDER. Note that the order number is
shown as 100001 and the date as today's date in the form mm/dd/yy.  The
cursor will be positioned at the first field in which you can enter any
data, in this case, the customer name field.  Since this field is now
required, you must enter a name.

Action 

Type in the name and the remaining values for the order, as shown in
Figure 6-13, then press ENTER.

[]
Figure 6-14. TOTALS Form, Record No. 2 When you press ENTER to record the typed values, the system calculates the total price. It then displays the next form, TOTALS, as shown in Figure 6-14. The order number is the same as the number displayed on the previous form, ORDER, since this form contains the totals for the ORDER form. The order number is displayed since it was transferred from the save field during the initialization phase (INIT). The date too is displayed because it was calculated in the initialization phase. Of the two remaining values transferred from the ORDER form, only the total net price is shown when the form is displayed. This is because it, like the order number, is moved from the save field in the initialization phase. The customer name, on the other hand, is set in the field edit phase and is not moved until the user presses ENTER. The first field in which you can enter data is the Discount % field. You may change the discount percent from 10 to some other value, and you may change the tax rate and the shipping cost. These are the only three values that may be entered on this form; the other values are all display-only. If you do not want to change these three values, simply press ENTER to record all the totals. Action For this exercise, make no changes and press ENTER to record the totals in the batch file and then display the next form.
[]
Figure 6-15. Browse Mode, Record No. 1


MPE/iX 5.0 Documentation