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.

StepsTo modify existing data:

  1. Tab to the field and enter a new value.

    The Preview view uses validation rules, display formats, and edit styles that you have defined for the columns, in this particular DataWindow object.

To save the changes to the database, you must apply them.

StepsTo add a row:

  1. Select Insert Row from the Preview view’s pop-up menu.

    Sybase WorkSpace creates a blank row.

  2. Enter data for a row.

  3. Select Save from the Preview view’s pop-up menu to save the changes in the database.

NoteAdding a row in an application Selecting Insert Row is equivalent to calling the insertRow method and then the scrollToRow method at runtime.

StepsTo delete a row:

  1. Select Delete Row from the Preview view’s pop-up menu.

    Sybase WorkSpace removes the row from the display.

  2. Select Save from the Preview view’s pop-up menu to save the changes in the database.

NoteDeleting a row in an application Selecting Delete Row is equivalent to calling the deleteRow method at runtime.

StepsTo apply changes to the database:

  1. Select Save from the Preview view’s pop-up menu.

NoteApplying changes in an application Selecting Save is equivalent to calling the Update method at runtime.