/ Forums / Advansys Formativ / Creating Solutions with Formativ / Groupwise-Event for appointments

  • Creator
    Topic
  • #4242
    griesserag
    Participant

      Hello

      I’m searching for a groupwise-event which occurs everytime before an appointment will be posted to the calendar. The event must occur at every appointment-type (regardless if it’s a posted appointment or whatever). So the event should be something like a OnAppointmentSave event.

      Is there something like this?

      I’m asking this because I’d like to change the subject of an appointment before it will be posted to the calendar. Is this possible at all, and if yes, how can I realise it?

      Thanks for your answer.

      Regards

    • Author
      Replies
    • #7576
      griesserag
      Participant

        Or is it also possible to add a personal field to the appointment before it will be stored?

        #7577
        Support 3
        Participant

          quote:


          I’m searching for a groupwise-event which occurs everytime before an appointment will be posted to the calendar. The event must occur at every appointment-type (regardless if it’s a posted appointment or whatever). So the event should be something like a OnAppointmentSave event.


          You should be able to use the appointment On send event. Open Formativ IDE – Select the applet – select Integrations tab – Click Appointments events – click on send. Restart GroupWise after you set the event.

          quote:


          I’m asking this because I’d like to change the subject of an appointment before it will be posted to the calendar. Is this possible at all, and if yes, how can I realise it?


          If the appointment is posted or personal then you can change the subject. You can probably use the ‘ItemSetText’ token to set the subject. See the Formativ language guide and GroupWise Token API for information about the token and parameters.

          quote:


          Or is it also possible to add a personal field to the appointment before it will be stored?


          You can only add custom field to a message using the GroupWise Object API.

          Hope this helps.

          Regards,
          Advansys Support

          #7575
          griesserag
          Participant

            But will the OnSend-event also occur when I receive an appointment? The problem is, that the OnAccept-event doesn’t occur when I make a posted appointment nor when I undelete an appointment.

            #7579
            griesserag
            Participant

              So it would be perfect when there is an event which occurs when something will be stored in the calendar and an event which occurs when an appointment will be deleted from the calendar. Only the accept and the delete events aren’t useful enough because when I i.e change a appointment to a mail, the delete-event doesn’t occur….

              #7578
              Support 3
              Participant

                quote:


                But will the OnSend-event also occur when I receive an appointment? The problem is, that the OnAccept-event doesn’t occur when I make a posted appointment nor when I undelete an appointment.


                ‘On send’ event will not occur when you receive an appointment. This event will occur when you send an appointment.

                GroupWise only allow you to accept a incoming appointment so the OnAccept event will occur for the incoming appointment. ‘On accept’ event will not occur for the posted appointment.

                Seems like you need a combination of events and perform your operation based on the event. You can integrate your applet to ‘On send’, ‘On accept’, ‘On undelete’, etc and then do the task based on the event executed. You need to check the ‘GWEvent’ for the type of event occurred. See below an example:

                  
                  select case GWEvent
                    case "GW#C#SEND"  msgbox "Send event executed"
                    case "GW#C#ACCEPT"  msgbox "Accept event executed"
                    case "GW#C#DELETE"  msgbox "Delete event executed"
                    case "GW#C#UNDELETE"  msgbox "Undelete event executed"
                  end select
                

                Hope this helps.

                Regards,
                Advansys Support

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