Getting Started


Adding a VAGen Record to the visual part

Now you are going to build a data part for your visual part. The fields (columns) in a single row of a relational database table are described in a VAGen record.

  1. Select the VAGen Parts category Figure vgcat not displayed..

    The parts palette is refreshed to show all the parts of the VAGen Parts category.

  2. Select the VAGen Record part artwork. Drop the part by clicking on the free-form surface to the right of the Customer Information window. The mouse pointer becomes a cross-hair when your cursor is over an area where you can drop the part.

    The Add Part window, shown in Figure 98, is displayed. You can enter a part name (in this case, a record name) or use an existing VisualAge Generator record by selecting from the drop-down list. For this exercise, you will enter a record name.

Figure 98. Add Part Window
Figure winadvg not displayed.

  1. Type customer as the record name, and select OK.

    The CUSTOMER record is now on your free-form surface and ready to be defined. This name can be the same or different from the table name in the relational database.

  2. Click with mouse button 2 on the CUSTOMER record.

    A context menu is displayed.

  3. Select Edit Part.

    The New Part Application window is displayed.

  4. Ensure that Tutorial is selected, and select OK.

    The CUSTOMER record is displayed in the Record Editor. This is the same record defined in Chapter 11, "Defining an SQL record". If you have already completed that section, this record is already defined, except for the data item descriptions.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]