Getting Started with TRANSACT (32247-90007)

Chapter 9 161
Creating Custom Applications
Adding, Deleting, and Changing Elements
Adding, Deleting, and Changing Elements
Now let’s take on a major localization step. Let’s redefine the customer dataset, expanding
the size of cust-no from 4 to 6 digits long, deleting the zipcode field and adding a new field
called area. The following Figures illustrate what must be done to accomplish all of this.
The important point for Transact is that we only need to recompile the program to
incorporate the new structure.
First we modify the form file, changing all the forms that reference the customer data.
custupdatemm is changed to reflect the 6-digit customer number.
Figure 9-12. Customer Main Menu, Change Size of cust-no
custupdate1 is changed to reflect the 6-digit customer number.
Figure 9-13. Marketing Customer Update, Change Size of cust-no
custupdate2 is changed to reflect the 6-digit customer number, delete of zipcode, and
addition of area, because finance needs to be able to update this new code.
custupdatemm customer update main menu
enter customer number [ ]
f1 - marketing (custupdate1)
f2 - finance (custupdate2)
f3 - accounts payable (custupdate3)
***********************************************
or
enter screen name [ ]
market- finance accounts exit
ing payable
custupdate1 marketing customer update
customer number [ ]
name [ ]