Writer Guide

Figure 418: Assign action dialog box
Macros can also be assigned to events relating to the form as a whole.
To assign these, right-click on a form control in the document, select
Form and click on the Events tab.
Read-only documents
Having created your form, you want whoever is using it to be able to
access the information stored in the database, or complete the form,
without changing the layout. To do this, make the document read-only
by selecting Tools > Options > OpenOffice.org > Security> Open
this document in read only mode.
Fine-tuning database access permissions
By default, when a database is accessed from a form, any changes can
be made to it: records can be added, deleted, and amended. You may
not want that behavior. For example, you may want users to be able
only to add new records or to be prohibited from deleting existing
records.
In design mode, right-click on a form control and select Form from the
pop-up menu. On the Data tab of the Form Properties dialog box are a
number of options: Allow additions, Allow deletions, Allow
modifications and Add data only. Set each of these to Yes or No to
control the access users have to the data source.
498 OpenOffice.org 3.x Writer Guide
Free eBook Edition