/ Forums / Advansys Formativ / Creating Solutions with Formativ / Address book object / Reply To: Address book object
There are two techniques you can use to access address book information.
1) The standard GroupWise.Account object, which provides lower-level, complete, yet more difficult to use access, or
2) the GroupWise.AddressBooks object, which provides higher-level, yet simpler access.
The technique you use will ultimately depend on the problem you are trying to solve.
Option 1) uses the native GroupWise Object API to reference the address book. You need to use the FieldDef approach shown in the example to access field data.
Option 2) wraps the Object API in a simple object model. Only basic fields are exposed by hard coded property name (such as FirstName). The names of the properties were chosen as simple representations of the names. The reference fields were not encapsulated, as they were not considered to be widely used. Using this technique you are still able to access the reference fields, or any other fields supported by the address book via the AddressBookEntry.Object property. This gives you access to the native Object API AddressBookEntry object. Likewise, the wrapped AddressBook object also exposes an Object property. Using the .Object properties, you are able to access any Field in a book using a variation on the technique shown in the example above.
There are several examples of address book access available from AppletCentral on CoolSolutions. There are also a couple of examples in the examples pack you can download from our web site.
I hope this helps.
Advansys Support