Previous Topic: Generating and Building the Employee Entity

Next Topic: Chapter Review

Adding Employee Records

In this section, you add employees by running the function scoped by the Employee entity.

To add employees to the database:

  1. In the Generate and Build window, select Employee.Edit.
  2. Click the Run toolbar button.

    Adding Employee Records (1)

  3. Choose Plex r7.0 Tutorial.dsn when prompted to select a data source.
  4. Select the Continue New option.

    When this option is selected, you do not have to click New when entering a series of records.

  5. Add some employees, clicking Apply to add each. Here is some example data you can use.

Employee ID

Name

Hire Status

Email Address

Emp01

Heather

Contract

Heather@No.Where

Emp02

David

Full-time

David@No.Where

Emp03

Martha

Part-time

Martha@No.Where

  1. You may notice that the grid on the left does not show the new employees you have just added. This is the default behavior when adding a series of records using the Continue New option.

    Click the Refresh toolbar button above the grid to show the records.

    Adding Employee Records (2)

  2. Close the dialog.
  3. Add the following triple to your model to keep the data you have entered from being lost the next time you generate and build the Employee entity:

    Employee.Physical Table implement SYS No

    For more information, see Preserving Data in the chapter "Your First CA Plex Application in 20 Minutes."

  4. Save your model.