Modifying data

You can add, modify, or delete rows in the Preview view. When you have finished manipulating the data, you can apply the changes to the database.

NoteIf looking at data from a view or from more than one table By default, you cannot update data in a DataWindow object that contains a view or more than one table.

For more about updating DataWindow objects, see Chapter 20, “Controlling Updates in DataWindow Objects.”

Editing data

You can make changes to data directly in the Preview view. The Preview view uses validation rules, display formats, and edit styles that you have defined for the columns, either in the Database painter or in the current DataWindow object. Changes that you make to the data use the styles and formats selected for the column.

StepsTo modify existing data:

  1. Tab to the field that has a value you want to change and enter the new value.

    To save the changes to the database, you must apply them as described in “Applying changes in an application”.

Adding a row in an application

Clicking the Insert Row button in the Preview view is equivalent to calling the InsertRow function and then the ScrollToRow function during execution.

StepsTo add a row:

  1. Click the Insert Row button.

    PocketBuilder creates a blank row.

  2. Enter data for a row.

    To save the changes to the database, you must apply them as described in “Applying changes in an application”.

Deleting a row in an application

Clicking the Delete Row button in the Preview view is equivalent to calling the DeleteRow function during execution.

StepsTo delete a row:

  1. Click the Delete Row button

    PocketBuilder removes the row from the display. To save the changes to the database, you must apply them as described in “Applying changes in an application”.

Applying changes in an application

Clicking the Update Database button in the Preview view is equivalent to calling the Update function during execution.

StepsTo apply changes to the database:

  1. Click the Update Database button.

    PocketBuilder updates the table with all the changes you have made.