/ Forums / Advansys Formativ / Creating Solutions with Formativ / Custom Context and Forwarding.

  • Creator
    Topic
  • #4260
    Amy
    Participant

    We have a message with a custom context or class name (GW.MESSAGE.MAIL.MyApp). This message has a different icon and it has a custom button on the toolbar.

    When the user forwards the message (if they forward inline) that message doesn’t have the custom button and the class of the message is GW.MESSAGE.MAIL not GW.MESSAGE.MAIL.MyApp. If they forward as an attachment the attached message works as needed but the container message doesn’t have our custom icon. (but we can live with that constraint)

    1) Can I prevent the user from forwarding (our custom) messages in-line?

    2) Since the fowarded message needs the custom button functionality. I created an applet that runs on the ‘BeforeForward’ event on the GW.MESSAGE.MAIL.MyApp context.

    In this applet. I cancel the forward event. Create a draft email (in our custom context) and copy everything I need from the original email. Then I prompt the user for the list of recipients. Then send the email. Then delete the draft from the trash.

    The problem I am having is this applet isn’t being run if the user has set up a rule to forward messages. Is there another event that can trap those messages before they are forwarded so I can make the necessary changes?

    If I can trap those messages how can I get the recipients from the rule.

    3) Is there possibly a better way to accomplish this then the method that I’ve chosen?

    Thanks for any help that you can give me.

    Amy

  • Author
    Replies
  • #7642
    Support 3
    Participant

    quote:


    Can I prevent the user from forwarding (our custom) messages in-line?


    You can set the OnForward event and select “Replace GroupWise event” which will cancel the forward event.

    quote:


    The problem I am having is this applet isn’t being run if the user has set up a rule to forward messages. Is there another event that can trap those messages before they are forwarded so I can make the necessary changes?


    Rules execute on server side and so far there are no GroupWise API available for the developer to access the rule properties. We can not think any work around to trap the messages which forwarded by the rules. Another option (may be not so practical) is to block the rules token so that no rules will be executed.

    We are not sure which API you use to create the custom message. If you need to use the custom class name “GW.MESSAGE.MAIL.MyApp” then you probably need to use the Object API to create the message and display the message view at the end.

    Hope this helps.

    Regards,
    Advansys Support

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