HP 3000 Manuals

MODIFY DATA TRANSFERRED BETWEEN RECORDS [ 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

MODIFY DATA TRANSFERRED BETWEEN RECORDS 

To modify any data that has been written to a batch file, you must be in
Browse mode.  Then you locate the record and correct it.  When you press
ENTER, the corrected data is written over the previous data in the
record.  If this data appears only in one record or does not affect any
other record, that is all you need to do.  For example, if you change a
customer address entered on the ORDER form, you need not worry about the
totals transferred to the TOTALS form.

If, however, you change a value that is transferred to another record,
you must locate that record and press ENTER to record the new value.  For
example, if you change the customer name in Record #1 of the current
batch file, you must make sure the name is also changed on Record #2.

In this exercise, suppose you want to change a customer name from
RANDOLPH BROTHERS to RUDOLPH BROTHERS.

Action 

First, locate the record on which the name was originally entered, in
this case, Record #1.  Then, change the name and press ENTER, as shown in
Figure 6-20.

Since the customer name is always entered on this form and then
transferred via a save field to the totals form, you must also change
this value on the next record.  But you cannot change the name on the
TOTALS form directly--it is a display-only field protected from data
entry.

[]
Figure 6-21. Browse Mode, Record No. 2 When you press ENTER to record the correct name on the ORDER form, the next record is displayed. This record still contains the old incorrect customer name, as shown in Figure 6-21. Although you cannot change the customer name directly on this form, you can force the new name to be transferred by pressing ENTER when the TOTALS form is displayed. Pressing ENTER causes the SET NAME TO SNAME statement in the NAME field to be executed, thereby transferring the new name from the SNAME save field.
[]
Figure 6-22. Browse Mode, Corrected Record No. 2 Action So, press ENTER and then press PREV REC to return to Record #2. You see that the name has been corrected, as shown in Figure 6-22. Similarly, if you change the quantity or unit price of an order recorded on the ORDER form, you must then press ENTER on the corresponding TOTALS record to make sure the order total is correct. Action The exercise is complete; press EXIT.


MPE/iX 5.0 Documentation