Copy an Existing View

Instead of creating a new View, you may wish to copy and modify an existing one (see Copy View).

When creating a new View for an existing table you must ensure that the data currently in the table fits the new definition.

Once an existing View has been copied, you may wish to modify some of the defining information. This is done using the same options you would use to create a new View. The table defining Options, 1 – DEFINE VIEW, 2 – DEFINE VIEW SUPPLMT and 4 – EDIT DISPLAY ORDER, can all be used to modify an existing View as well as to define a new View.

Edit a View

If you wish to edit an existing View, select Option 1 – DEFINE VIEW from the Define Table and View menu (see Figure 133) and press <Enter>. The system displays the Edit View screen Figure 134. Here you can specify the View that you wish to edit. Insert the View Library and the View name and press <Enter> to display the fields that are currently defined for the table.

To modify an existing field, use the S (Select) or blank line command and press <Enter>. This displays the row in the Edit-Row screen where you may proceed to edit the information for that field.

To add a new field to the table, use either the N (NEW) or I (INSERT) line command and press <Enter>. Using N (NEW) creates a new field using the selected row as a template. The new field will be placed in the table in the position following the row that was used as a template. Using I (INSERT) will create a new field with all of the defining attributes initialized.

Defining fields in the View and the values that may be used in those fields are described in the following sections.