/ Forums / Advansys Formativ / Formativ Creator / Problems getting applet to work with Formativ 2.7 and Groupwise 2014 R2

  • Creator
    Topic
  • #5196
    dfischer
    Participant

      Hello there,

      I´m struggling to get a custom Formativ Applet to work with Grouwise 2014 R2 and Formativ 2.7. It is a very complex one which is in use for many years now in our company and it acts as a show stopper for the rollout of GW 2014 Client right now. We used the plugin since Groupwise 7 and it worked without any problems also for GW8 and 2012.

      The Situation:
      – Groupwise Backend is already updated to 2014 since last weekend.
      – GW Clients on our employees workstations are still GW 2012 (and there the applet is working).
      – GW 2012 client leads to single-sign-on difficulties in combination with 2014 backend so we are forced to update all clients as soon as possible to 2014.
      – Before we can do this our custom applet called “HTML Email” must be working with 2014 client.

      The “HTML Email” applet does the following:
      It is integrated with the Mail-OnSend Event (before) and brings up a custom form with a html preview of the mail and also the ability to load several html layouts with company logos and also signatures for our employees into the mail code. The data for the layouts and signatures is directly loaded from our Oracle database. Also the solution covers some DMS functionality and puts a custom email “barcode” to the document which is then recognized by our DMS application.

      The Problem:
      To accomplish the above mentioned functionality, the HTML part of the composed mail is loaded and modified by the solution directly before the mail is sent. This is done with the following sample code snippet:


      Dim oHTMLDom: Set oHTMLDom = utilities.HTMLDom
      Dim oHTMLView: Set oHTMLView = oHTMLDom.Document
      Set oHTMLDom = Nothing
      Dim res: res = utilities.IHTMLDocumentFromView(oHTMLView)
      Dim strHTMLFull: strHTMLFull = oHTMLView.body.parentElement.outerHTML
      Dim strHTMLBody: strHTMLBody = oHTMLView.body.innerHTML

      'For Debugging purposes:
      Set oFS = CreateObject("Scripting.FileSystemObject")
      FileWrite "C:test.htm", oHTMLView.body.parentElement.outerHTML

      This technically does still work and we get some HTML as a result, but: For GW 2012 and previous versions the result was the composed mail itself and the Applet could work with that code. With GW 2014 we don´t even get the mail content but instead a wild construct of html code with several .css and .js implementations and also e.g. the mail “To” element represented as html code.

      I assume the cause for this will be that GW 2014 uses a similar approach like our Applet and modifies the mail Content itself before it is sent. The Problem: This is not done when the “before send” event fires. So what we need is a possibility to

      1.) Get the complete mail content as HTML before the item is sent
      2.) Also modify this Content by our Applet before sent.

      This is the Major Problem right now. Another side Problem: The new “add signature” function in the mail window will definetly entangle our employees. Is there a way to disable this or maybe to use it with our Applet instead of the gw functionality?

      Thanks in advance for any help!

    • You must be logged in to reply to this topic.