Editing records is changing values of one or several fields. To perform this operation ObjectLand provides the user with two possibilities.
The user can edit record fields immediately in the table pane. This method is convenient for making small changes – for instance, modifying the value of one of a record's fields.
If the user, after making changes in one field, goes to another field of the same record, then the sign
appears in the column of record numbers. This sign notifies that the record is being edited, i.e. made changes are not saved. The user can cancel changes using the command Record+Cancel (button
) or save them using the command Record+Save. Saving of changes is performed also when the user goes to another record.
If it is necessary to change values of several fields of the selected record, it is advisable to perform the command Record+Open in the table browser window or push the toolbar button
. After performing any of these commands a window of adding and editing records will be opened (figure 25-1). The editing pane will be filled in with the data from the corresponding fields of the selected record. The number of the record which is being edited will be displayed in the status bar.
While editing field values the commands Fields+Clean (the button
) and Fields+Restore (the button
) may be useful. The command Clean enters empty values in all record fields. The command Restore cancels the made changes of field values restoring the values which were in the fields at the moment of starting viewing of the present record or at the moment after performing the command Save.
After entering the required changes in the window of adding and editing records the command Record+Save should be performed or the toolbar button
pushed. If there were errors in editing, the appropriate message will be displayed, like in adding records, and the input focus will be placed in the error field. If there are no errors the record in the table will be changed.
It is also possible to complete record editing by the command Record+Add (the button
). In this case the original record which is being edited will not be changed, and a new record with changed field values will be added into the table.
The commands Record+Next and Record+Previous (the toolbar buttons
,
) permit the user to pass to next or previous table record accordingly. Next and previous record is determined by the displaying order set in the browser window.
To complete the editing mode the window should be closed.
If the record was changed but not saved, when passing to another record or when closing the editing window the system will ask if the changes should be saved.