Writer Guide

3) Show the Form Controls toolbar (View > Toolbars > Form
Controls).
4) Click the Design Mode On/Off button to put the document
into design mode, if necessary. With design mode off, most of the
toolbar buttons are grayed out. If the Design Mode button is also
grayed out, click on the Select button to activate it.
5) Click the Text Box button . Click in the document and, holding
down the left mouse button, drag the mouse to create a text box
for the first form field (for example, Name, if you are linking to
the database created above).
6) Click the Text Box button again and drag the mouse to draw
another field. Additional fields, of any type, can be added in the
same way (click and drag).
So far you have followed the same steps you used before when you
created your first form. Now you link your form with the data source
you registered.
1) Launch the Form Properties dialog box. You can do this by
clicking on the Form button in the Form Controls toolbar or
by right-clicking on any of the fields you inserted and selecting
Form. The form button is grayed out unless you have one of the
form elements selected. As soon as you select a form element in
your document, the Form button becomes clickable.
2) In the Form Properties dialog box, click on the Data tab (Figure
413).
Set Data Source to be the data source you registered.
Set Content Type to be Table.
Set Content to be the name of the table you want to access.
Close the dialog box.
3) For each form control in turn, launch the Properties dialog box.
Click on the control to select it (so small green boxes appear
around it). Then either right-click and select Control or click on
the Control button on the Form Controls toolbar.
484 OpenOffice.org 3 Writer Guide