\<bookmark_value\>data sources; registering address books\</bookmark_value\>\<bookmark_value\>address books; registering\</bookmark_value\>\<bookmark_value\>system address book registration\</bookmark_value\>\<bookmark_value\>registering; address books\</bookmark_value\>

Registering an Address Book

In \<item type=\"productname\"\>LibreOffice\</item\> you can register different data sources. The contents of the data fields are then available to you for use in various fields and controls. Your system address book is such a data source.

\<item type=\"productname\"\>LibreOffice\</item\> templates and wizards use fields for the contents of the address book. When activated, the general fields in the templates are automatically replaced with the fields from the data source of your address book.

In order for the replacement to take place, you must tell \<item type=\"productname\"\>LibreOffice\</item\> which address book you use. The wizard asking for this information appears automatically the first time you activate, for example, a business letter template. You can also call the wizard by following the steps listed below.

Note Icon

The address book data is read-only in LibreOffice Base. It is not possible to add, edit, or delete address data from within Base.


Address Data Source Wizard

To call the Address Data Source wizard, choose File - Wizards - Address Data Source.

Registering An Existing Address Book Manually

  1. Choose Tools - Address Book Source. The Templates: Address Book Assignment dialog appears.

  2. In the \<emph\>Data source\</emph\> combo box, select the system address book or the data source you want to use as an address book.

  3. If you have not yet registered the system address book in \<item type=\"productname\"\>LibreOffice\</item\> as the data source, click the \<emph\>Administrate\</emph\> button. This takes you to the \<emph\>Address Book Data Source Wizard\</emph\>, in which you can register your address book as a new data source in \<item type=\"productname\"\>LibreOffice\</item\>.

  4. In the \<emph\>Table\</emph\> combo box, select the database table you want to use as the address book.

  5. Under \<emph\>Field assignment\</emph\>, match the fields for first name, company, department, and so on to the actual field names used in your address book.

  6. When finished, close the dialog with \<emph\>OK\</emph\>.

Now your data source is registered in \<item type=\"productname\"\>LibreOffice\</item\> as the address book. If you now open a template from the \<emph\>Business Correspondence\</emph\> category, \<item type=\"productname\"\>LibreOffice\</item\> can automatically insert the correct fields for a form letter.