/ Forums / Advansys Formativ / Creating Solutions with Formativ / Multi-tasking OnSend issue

  • Creator
    Topic
  • #4237
    rdryan
    Participant

    While testing, it became apparent that the before event “OnSend” applet launch runs just one active applet at a time on the client. It’s a single tasking problem. I used this simple applet to identify the issue:

    Sub Main(Client, GWEvent)
    msgBox “the applet is waiting”
    End Sub

    The applet is configured to fire on a before GroupWise even “OnSend”. When requesting to send an email messages, the msgBox prompts as it should. However, if the message prompt is temporarily ignored and a send request is issued on another email or if a second send is requested on the same email, an additional applet session does not fire. In fact, the GroupWise client shuts down. It’s just not good. I’m not sure if this is a GroupWise OnSend single treading issue, or if we have a problem somewhere in our configuration. I have a much more complicated applet that may prompt the sender to optionally abort the send. In reading forum entries, using an applet for this type of functionality is a common theme.

    We’re running the GW client 6.5.6 build 2/1/2006 using Formativ v 2.0.1

    Do you have any suggestions that enable a client applet to run multiple active sessions to support multi tasking GW users?

    Thanks for your ideas,
    rdryan

  • Author
    Replies
  • #7566
    Support 3
    Participant

    Formativ do not support multi tasking and designed to execute one applet at a time.

    We have followed your steps and can issue a send request on another email with the sample code provided. This behaviour only occurs if the VBS message box (i.e msgbox “the applet is waiting”) is used. It seems this instance, VBS message box works as non-modal dialogue box where user can do other things while it is there. If you use a modal dialogue (i.e Form, Delphi message dialog box) then user can not do anything else until it is complete. However, we could not reproduce the issue about the GroupWise client shuts down.

    In this case, we will recommend to use the messagedlg or Form. Please see the Delphi VCL help for more information about the MessageDlg function. Borland Delphi VCL help file can be downloaded from:
    ftp://ftpc.borland.com/pub/delphi/techpubs/delphi6/d62pro.zip

    See below a sample code of the Delphi message dialog box function:

    call messagedlg("the applet is waiting", mtError, 4, 0)
    

    Hope this helps.

    Regards,
    Advansys Support

    #7565
    rdryan
    Participant

    Your information is working out very well! Thank you for getting me over the hurdle.

    rdryan

    #7567
    Support 3
    Participant

    Great news, thanks for the feedback.

    Regards,
    Advansys Support

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