/ Forums / Advansys Formativ / Creating Solutions with Formativ / Create Appointment (all-day and without recipient)

  • Creator
    Topic
  • #4306
    dfischer
    Participant

      Hello!

      I am very new to creating groupwise solutions with Formativ. I have to write an applet which has the ability to create simple appointments for the local user. They need to be of all-day type and have no specific recipient. Appointments have to be stored in txt-files and should be imported to groupwise from there. Unfortunately i´ve got no idea how to realize this.

      Is there an easy way to do this? Can someone offer me a sample file for this? Or where can i get further information? Would be glad if sb could help me.

    • Author
      Replies
    • #7774
      Support 3
      Participant

        Please refer to “Formativ Language Guide”, “Formativ Developers Guide” and GroupWise Object API for more information about creating message. See below the sample code from the “Formativ Developers Guide” about creating appointment:

        quote:


        You can create any kind of message without a user interface. You would normally use this approach when you have all the information required to create a new item,
        and there is no need for user interaction. For example, you may write an Applet to read email addresses from a database,
        then create and send a customized email message to each address.
        In this case there is no need for a user to see the actual messages being composed.

        Although there are several variations, the most common way to create a new message is this:
        Call the Add method of the Messages collection owned by the folder in which you wish to store the message. For example,
        the following Applet creates a new personal GroupWise Appointment in your own calendar:

        Sub Main(Client, GWEvent)  
            Dim objMessage  
        
            ' Create the new message   
            Set objMessage = GroupWise.Account.Calendar.Messages.Add("GW.MESSAGE.APPOINTMENT", 3)  
         
            ' Set some properties   
             objMessage.OnCalendar = True   
             objMessage.FromText = GroupWise.Account.Owner.DisplayName   
             objMessage.Subject = "This was created using Formativ"  
         
             ' Display the MessageID of the new message   
             MsgBox(objMessage.MessageID)  
        End Sub

        Hope this helps.

        Regards,
        Advansys Support

        [This message was edited by Support 1 on November 13, 2006 at 03:37 PM.]

        #7773
        dfischer
        Participant

          Thanks for advice. I´m reading the Object API now and it seems to be exactly what i searched for.

          #7772
          Support 3
          Participant

            Thanks for your feedback.

            Regards,
            Advansys Support

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