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. From the list above the Beans palette, change Swing to VAGen Parts.

    The Beans palette is refreshed to show all the part types of the VAGen Parts category.

  2. Select the VAGen Record part. artwork.
  3. 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 90, 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.

    Figure 90. Add Part Window
    Figure winadvgj not displayed.

  4. 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.

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

    A context menu is displayed.

  6. Select Open.

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

    Note:If you have not already defined the CUSTOMER record, the New Part Package/Application window is displayed. Ensure that tutorial is selected and select OK. The record editor is displayed.


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