#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.]