/ Forums / Advansys Formativ / Creating Solutions with Formativ / Accessing Information from GroupWise.AddressBookDlg

  • Creator
    Topic
  • #4369
    ManfredS
    Participant

    Hi,
    How can i access the information from the GroupWise.AddressBookDlg?

    For example the user selects entries for TO, CC and BCC.

    If the user selects the close-button where is the provided information stored (and how can i use information for e.g creating a email (draft) message?

    Thanks for help
    Manfred

  • Author
    Replies
  • #7952
    Support 3
    Participant

    – Add the GWab control to your form (In Formativ Form designer, select GroupWise tab then add the GWab control). Change the name property to “oGWAB”
    – Change the ShowButtons property to “2” which will add the “Ok” button.
    – Double click the “OnOkClick” event and add the following code

      
    Sub testGWab1OkClick(Sender)
    
      dim iText
      dim iCounter
    
      iCounter = MainDlg.oGWAB.Count
    
      for x = 0 to iCounter - 1
        iText = iText & MainDlg.oGWAB.EMailAddress(x) & ";"
      next
    
      msgbox iText
    
    End Sub
    

    Hope this helps.

    Regards,
    Advansys Support

    #7956
    ManfredS
    Participant

    Thank you very much for your quick answer.

    So far i could not find out how i can determine the TargetType (e.g. TO, CC, BCC) because i try to send emails with the informations from the selected items.

    best regards
    Manfred

    #7955
    Support 3
    Participant

    Please see “Address Book Control” in GroupWise ActiveX API for available methods: http://developer.novell.com/documentation/gwactive/index.html?page=/ndk/doc/gwactive/gwax_enu/data/bktitle.html

    Follwing code will return the target type (TO, CC, BC) of the selected contacts.

      
      dim iText
      dim iCounter
    
      iCounter = MainDlg.oGWAB.Count
    
      for x = 0 to iCounter - 1
        iText = iText & MainDlg.oGWAB.EMailAddress(x) & " (target type: " & MainDlg.oGWAB.TargetType(x) & ");"
      next
    
      msgbox iText
    

    Regards,
    Advansys Support

    #7953
    ManfredS
    Participant

    Hi, i tried your sample code but the returned Target Type seems to be false if i select e.g. 6 items with target type TO.
    The returned values are 6;6;0;0;-1;-1

    regards Manfred

    #7954
    Support 3
    Participant

    It appears to be a bug in the GroupWise ActiveX – “Address Book Control”, TargetType returns what seems to be random values. We will report this behaviour to Novell and post any update in this thread.

    Regards,
    Advansys Support

    [This message was edited by Support 2 on April 01, 2008 at 03:54 PM.]

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