/ Forums / Advansys Formativ / Creating Solutions with Formativ / When is the “On Message Arrival” event triggered?

  • Creator
    Topic
  • #3849
    dstrickler
    Participant

      Obviously, if the client is running, this even is trigged on a new message.

      However, it doesn’t seem (in my limited testing)to activate if a message arrives while the client is shut down, and the client is started a few minutes later.

      Is this true?

      Thanks,

      Dave

    • Author
      Replies
    • #6398
      Support 2
      Moderator

        You’re right, the client must be running when the message comes for the On Message Arrival event to be triggered.

        The way you can sometimes get around this issue is to write your applet so that it executes on startup and scans existing messages looking for those that are unread.

        Regards,

        Advansys Support

        #6399
        dstrickler
        Participant

          Sounds like a decent workaround.

          Thanks,

          Dave

          #6397
          Support 2
          Moderator

            No problem. You will find an example of this approach in the Virus Alert applet which ships with Formativ.

            Please let us know if you have any other questions.

            Regards,

            Advansys Support

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