/ Forums / Advansys Formativ / Creating Solutions with Formativ / Check Post Button when using a Task

  • Creator
    Topic
  • #3935
    rfaude
    Participant

      Hello,

      i want to resond on the event, when posting a task. I used this script with all events marked on the integration tab for the task events.

      Sub Main(Client, GWEvent)

      msgbox(“Post ” & GWEvent)

      End Sub

      But no Messagebox on Post ????

      And the other problem what i not understand is: When checking a task in the calendar/dayview as completed the messagebox comes up ONE time with GW#C#COMPLETE. That’s ok. When opening the task and checked them in the Groupwise-UI as completed the messagebox comes up TWO times. Why comes it up two times?

      Thanks for your preserving help for me.

      Best Regards …

      Ralf

    • Author
      Replies
    • #6650
      Support 1a
      Participant

        Hello Ralf,

        I created an applet the same as yours and integrated it on the task ‘On Send’ event. I received the message box when I both created a new task and sent it to myself, and when I created a posted, personal task and pressed the post button. I did have to re-start the GroupWise client to get the event to work. Did you re-start the client? I’m using GroupWise 6.5 and Formativ 1.6, but I don’t think anything has changed in either component that would be an issue. Try re-starting the client to see if you receive the events. If not, could you please let me know the exact steps you go through when creating and posting the task.

        In terms of the two On Complete events firing when the task view is opened, I have been able to replicate what you describe. The Formativ event system sits over the top of the GroupWise event system, which is firing the On Complete event twice when task view are open. I don’t know why GroupWise is doing this. It sounds like a bug to me, which I’ll report to Novell today.

        Depending on what you need to do, there are generally was around this, but they can be a little messy. You may need to save out to the message ID of the task if the view is visible to a temp file. Your applet would also check for the existence of this file on the On Complete event. If it finds it, and the message ID matches the message ID of the current task, you know this is the second event, which should be ignored. Your applet then deletes the temporary file. Messy I know, but something like this should work until we can get Novell to fix the double event.

        Regards,

        Advansys Support

        #6652
        rfaude
        Participant

          Hi,

          i tried again with a modified script and re-start the GW-Client with the following result.

          When I created a posted, personal task with GW-UI and pressed the post button the messagebox comes up. But when i use my script to create a task it does not work. Integration GW-Main-Toolbar (Button), Task | Events | OnSend

          Sub Main(Client, GWEvent)

          if (GWEvent = “GW#C#SEND”) then

          msgbox(“Send ” & GWEvent)

          else

          ‘ Create the new task
          set objTask = GroupWise.Account.Calendar.Messages.Add(“GW.MESSAGE.TASK”, 3)

          ‘ Set some properties
          objTask.OnCalendar = TRUE
          objTask.FromText = GroupWise.Account.Owner.DisplayName
          objTask.TaskPriority = “9”
          objTask.Subject = “My Task”
          objTask.BodyText = “myTaskMessagetext”
          objTask.StartDate = “03.07.2003”
          objTask.DueDate = “03.07.2003”

          end if

          End Sub

          And the other thing is, when the task is already created, i re-open the task, editing something and post again, NO event ON SEND occurs !!!

          Regards …

          Ralf

          #6648
          Support 1a
          Participant

            Ralf,

            GroupWise events do not fire when an item is programmatically created – they only fire when a user manually creates an item in the client. This is the way GroupWise is designed. You would need to modify your creation routine to perform the appropriate processing on the item as part of the creation process.

            The On Send event does not execute when you re-post an existing item because you are not actually sending the item – you are re-saving it. This is the way GroupWise is designed. Nonetheless, I agree it would be useful to have an ‘On Re-save’ event exposed by GroupWise that we could use. I’ll make a formal request to Novell in this regard today.

            I will also report the dual firing of the On Complete event when a task view is opened to Novell today.

            Regards,

            Advansys Support

            #6654
            rfaude
            Participant

              Are there any News??

              Thanks

              Ralf

              #6651
              Support 1a
              Participant

                I received word from Novell this morning, who have confirmed two GroupWise bugs:

                1) The send event is not fired when a posted task is re-saved. This only affects the ‘advanced’ method of intercepting the send event, used by Formativ. Novell have handed this over their ‘CPR’ team, so I expect this should be fixed fairly quickly.

                2) The On Complete event fires twice when completing a posted (personal) task from the open calendar view. It doesn’t happen when you mark a group task complete, or mark either Group or posted tasks complete in other views. This problem exists in both GroupWise 6.0x and 6.5. Novell have already fixed this problem in 6.0.4. 6.5 SP1 is about to be released, and no other fixes are likely to be incorporated, so this one will have to wait for 6.5 SP2.

                Novell will let me know when both of these are fixed, at which point I’ll let you know. In the meantime, I’m afraid there is not really anything we can do to help work around these problems.

                Regards,

                Advansys Support

                #6653
                rfaude
                Participant

                  Thanks for the informations.

                  Ralf

                  #6649
                  Support 1a
                  Participant

                    We will let you know when Novell release these fixes. They have been very responsive, so I suspect we will not have to wait too long.

                    Regards,

                    Advansys Support

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