HP 3000 Manuals

ENTER DATA ON REPEATING FORM [ 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

ENTER DATA ON REPEATING FORM 

Now that ORDFORM1 has been redefined, run ENTRY and enter data into a new
batch file.

Action 

Issue the run command as shown and specify the forms file and batch file
names, ORDFORM1 and DATA7.

ENTRY displays the first form, ORDER_HEAD, as shown in Figure 7-19.  Note
that the window line is now positioned at the top of the form and that
the line for the order information is not displayed yet.

[]
Figure 7-20. The ORDER_HEAD Form Frozen with the ORDER_LINE Form Appended The only data you are required to enter on this form is the customer name. However, for most purposes you also enter the customer's address and phone number. Action Type in the customer information on the header form as shown in Figure 7-20 and press ENTER to record this information in the first record of the batch file. Because the header form is defined as a "frozen" form, it remains on the screen when you press ENTER. The next form, which is the line of order information, is a repeating appending form and is displayed on the screen immediately below the first form. The fields on this next form are aligned with the field headers at the bottom of the first form. Note that the record number in the window line is now shown as #2. The data you enter in the new form is recorded as the second record of the DATA7 batch file. Unless you go to Browse mode, you cannot change the data in the header form; the entire screen except for the current form (ORDER_LINE) is now protected.
[]
Figure 7-21. Record No. 2 with Data Action Type data into all the fields on this form except the total price field, as shown in Figure 7-21; press ENTER.
[]
Figure 7-22. The ORDER_LINE Form Appended for Record No. 3 When you press ENTER to record the data in the first order line, the unit price is formatted, the total price is calculated and displayed, and then a new ORDER_LINE form is repeated immediately below the last form. Action Now type data into the second order line, as shown in Figure 7-22. Press ENTER.
[]
Figure 7-23. The ORDER_LINE Form Appended for Record No. 4 When you press ENTER, the second line of order information is recorded as Record #3 of the batch file. The total price is displayed and a new blank order line form for Record #4 appears directly below the last line, as shown in Figure 7-23.
[]
Figure 7-24. The ORDER_TOTALS Form as Initially Displayed


MPE/iX 5.0 Documentation