-
Topic
-
I am creatin an Holiday Rule applet. One of the fileds I would like on the Dialog Box is a forward to field. I would like this to either be like the To: field in an email where a user starts typing and the address appears in the field (alternatively have an addressbook button to click on and select the name) or have a drop down list with all addresses from the System Address Book.
I have found some demo code to search through an Address book and display the names in a drop down box. This works for Personal Address books, however, when I use it on the System Address Book (750 entries) it hangs GW. The other problem with this is that it takes ages to load the Dialog panel as it searches the address book and populates the drop down box. The code I am using is below:
Dim objAddressBooks
Dim objAddressBookSet objAddressBooks = GroupWise.AddressBooks
‘ Locate the address book called “Novell Groupwise Address Book”Set objAddressBook = objAddressBooks.Item(“Novell GroupWise Address Book”)
Set BookCtl = Dlg.AddComboBoxControl
With BookCtl
.Caption = “Select an address to forward the mail to”
.Width = 300
For Each objAddressBookEntry in objAddressBook
.Items.Add(objAddressBookEntry.DisplayName)
Next
End WithThe preference would be to have a field which links directly to the Address book and searches as the user types (similar to the To: field in emails)
Any help is greatly appreciated
Stuart
- You must be logged in to reply to this topic.