• Creator
    Topic
  • #4118
    mdanilof
    Participant

    We use Advansys Formativ Solutions Engine 1.6.012. Our applet is integrated to catch OnSend event.

    One of our clients reports that our solution intermittently isn’t getting triggered when they hit a Reply button.

    The applet code works with our application via ActiveX component (writeen in VB6), I have a debug version of this component that logs some information.
    I want to add to my log whether the user Sends or Replies and probably some additional info.

    My question is: How to determine whether the user Sends, Replies or Forwards the message?

    I tried registering our applet with OnReply event, but this brings another issue: I can’t get the reference to GroupWise.ComposingItem object
    Here is the snippet of our applet code, that works OK when it’s integrated only with OnSend event

    Set GWMsg = GroupWise.ComposingItem
    If Not GWMsg Is Nothing Then
    GWMsgID = GWMsg.MessageID
    Else
    MsgBox “Error initiating Message object. Please Restart GroupWise.”
    GroupWise.CancelGroupWiseEvent = True
    Exit Sub
    End If

    Regards,

    Michael

  • Author
    Replies
  • #7157
    MA
    Participant

    quote:


    My question is: How to determine whether the user Sends, Replies or Forwards the message?


    You can determine which event caused an applet to run checking the GWEvent argument (passed into the Sub Main() of every applet). Here’s some sample code:

    select case GWEvent
    case “GW#C#REPLY” msgbox “Reply message”
    case “GW#C#FORWARD” msgbox “Forward message”
    case “GW#C#SEND” msgbox “Send message”
    case else msgbox “Other”
    end select

    quote:


    I tried registering our applet with OnReply event, but this brings another issue: I can’t get the reference to GroupWise.ComposingItem object.


    I could not reproduce this. Make sure you set the OnReply event to After GroupWise Event. Alternatively, you can use the Groupwise.ItemSetText commands to set some properties:

    call groupwise.ItemSetText(“X00”, itfSubject, “Test subject”, false)
    call groupwise.ItemSetText(“X00”, itfMessage, “Test message”, false)

    Hope this helps.

    [This message was edited by Support 1 on March 23, 2005 at 07:39 PM.]

    #7156
    Support 1a
    Participant

    We will also respond via direct email.

    Regards,

    Advansys Support

    #7155
    mdanilof
    Participant

    Thanks for the prompt reply.

    Registering OnReply Before GW Event was the issue

    I’ve changed it to After GW Event and it’s working.

    Thanks,
    Michael

    #7154
    Support 1a
    Participant

    Thank you for the confirmation.

    Advansys Support

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