-
Topic
-
I am a newbie to Advansys and scripting and I am wrintg an applet and part of it grabs all addresses from the Address Book and displays them in a drop down list. A copy of the code is below.
I would like to be able to get a count of the number of addresses in the address book and also display this info. I would also like to be able to display the Firstname and Lastname in the dropdown list rather than the Display Name. The reason for this is that people sort their address books differently. I have tried a few different methods for this, but have not been successful.
Set objAddressBooks = GroupWise.Account.AddressBooks
Set objAddressBook = objAddressBooks.Item(“Novell GroupWise Address Book”)
Set BookCtl = Dlg.AddComboBoxControl
With BookCtl
.Caption = “Select an Alternate Contact”
.Width = 300
Button1Caption = “Search >>”
For Each objAddressBookEntry in objAddressBook.AddressBookEntries
.Items.Add(objAddressBookEntry.DisplayName)
Next
Set objAddressBooks = nothing
End WithThanks,
Stuart
- You must be logged in to reply to this topic.