/ Forums / Advansys Formativ / Creating Solutions with Formativ / Integration Conditional Code

  • Creator
    Topic
  • #4467
    jasonchild
    Participant

    Hi,

    I was wondering if there was a way from within my formativ solution to be able to detect the type of integration that triggered the applet to run?

    I.e. I have an applet that has integration properties set for the following:

    GroupWise Main Window > Toolbar
    Attachment Viewer > Toolbar & Popup
    Attachment Control > Toolbar & Popup

    Inside my applet I need to run one particular piece of code if they used the GroupWise Main Window > Toolbar to run the applet vs the attachment toolbar / popups.

    Also I don’t want to simply test for the selection of a mail message / attachment (which I already know how to do), instead I expressly need to do something if and only if they run my applet from the groupwise main window toolbar.

    Is this possible? If so how?

    Regards and thanks in advance,

    Jason.

  • Author
    Replies
  • #8258
    Support 2
    Moderator

    Hi Jason,

    There may be a couple of approaches to consider. First is the language construct Utilities.ExecutionSource/ExecutionSourceInfo as documented the Formativ Language Guide. This command enables you to determine the type of control which initiated the applet. The problem with it for your needs is that it will identify applet execution from the toolbar but won’t distinguish between the GroupWise client’s main toolbar and a message view’s toolbar.

    The other option is to use the Applet Chaining feature along with Utilities.TransferData as a parameter. You can write a separate stub applet for each view integration you wish to identify then, using TransferData, pass the desired context and any other information to a separate main applet, whose behavior changes according to the applet which initiated it.

    Hope this helps and provides some avenues for investigation.

    Kind Regards,

    Advansys Support

    #8259
    jasonchild
    Participant

    Hi,

    Sounds like I could make use of the Applet Chaining feature to enable my solution. However I can find NO reference to either Applet Chaining nor Transfer data in the Language Guide, Users Guide or Programmers Guide that I downloaded from http://advansyscorp.com/formativ_support.htm.

    I can confirm that I am using formativ creator version 2.5 so it should contain this feature. Is/are there updated help file(s) contining this feature?

    Kind Regards,

    Jason Child

    #8262
    Support 1
    Participant

    Hi Jason,

    The Formativ Developers Guide has a section on Applet Chaining in the Advanced Techniques chapter (see the Contents tab). Also relevant is the section that follows, Applet Data Exchange.

    The Developers Guide is normally installed with Formativ Creator and may be accessed via the GroupWise Help menu: Formativ Help > Developers Guide.

    I hope this helps.

    Kind regards,
    Advansys Support

    #8260
    jasonchild
    Participant

    Ah, all this time I’ve been accessing the other external documentation files heh!

    Ok, thanks for this, applet chaining implemented successfully to achieve the desired result. Thanks again Advansis Support Smile

    Cheers,

    Jason

    #8261
    Support 1
    Participant

    Good to hear you’ve achieved the desired result, and thanks for letting us know.

    Kind regards,
    Advansys Support

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