• Creator
    Topic
  • #4107
    jyeomans
    Participant

      Hi,

      Could anyone please advise me of the best way to search a groupwise address book?

      I wish to search for part of a name and then display the results in a list view.

      Any help would be appreciated.

      Thanks

    • Author
      Replies
    • #7124
      MA
      Participant

        I would recommend you use the GroupWise Object API AddressBookEntries Find(Condition) method. You can use wildcard characters “*” and “?” in the filter expression. The folowing code uses the Find method to find contacts in the “Frequent Contacts” address book.

        For more details see the Object API documentation at:

        http://developer.novell.com/ndk/doc/gwobjapi/index.html?gwobjenu/data/h7ikbsqg.html

        dim oBook
        dim oContact
        dim oContacts
        dim iSyntax

        set oBook = groupwise.account.addressbooks.item(“Frequent Contacts”)
        iSyntax = “(Name CONTAINS “”” & inputbox(“Find contact”, “”, “”) & “*””)”
        set oContacts = oBook.AddressBookEntries.find(iSyntax)

        msgbox “Contacts Found: ” & oContacts.count

        for each oContact in oContacts
        msgbox oContact.displayname
        next

        [This message was edited by Support 1 on February 09, 2005 at 02:43 PM.]

        #7122
        Support 1a
        Participant

          Thanks for the suggestion.

          Advansys Support

          #7123
          jyeomans
          Participant

            Thanks – i’ll give it a try.

            #7121
            Support 1
            Participant

              We look forward to hearing about your results.

              Advansys Support

              #7125
              jyeomans
              Participant

                Works great!

                Thanks for your help.

                #7126
                Support 1a
                Participant

                  No problems.

                  Advansys Support

                Viewing 6 replies - 1 through 6 (of 6 total)
                • You must be logged in to reply to this topic.