PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Calendar of a Lotus Notes or Outlook messaging
  • Android calendar
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds an appointment:
  • WINDEVWEBDEV - Server code in a Lotus Notes or Outlook calendar. The Appointment structure is used to define the data of this contact.
    Reminder: This function cannot be used to add an appointment to an Outlook Express calendar.
  • Versions 18 and later
    AndroidAndroid Widget in a calendar on an Android device.
    New in version 18
    AndroidAndroid Widget in a calendar on an Android device.
    AndroidAndroid Widget in a calendar on an Android device.
  • Versions 21 and later
    iPhone/iPad in a calendar on an iOS device.
    New in version 21
    iPhone/iPad in a calendar on an iOS device.
    iPhone/iPad in a calendar on an iOS device.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Android Widget This function is now available in Android widget mode.
Versions 21 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 21
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
WINDEVWEBDEV - Server code
// Ouverture d'une session Lotus Notes
IDSession is int
IDSession = EmailStartNotesSession("MotDePasse", "ServeurMars", ...
"mail/julie.nsf", "C:\Lotus Notes\julie.id")
// Initialisation des variables de la structure RendezVous
AppointmentReset()
// Renseignements des variables pour le nouveau rendez-vous
mAppointment.Subject = "Réunion commerciaux"
mAppointment.StartDate = "20070125100000"
mAppointment.Location = "Salle 3B"
mAppointment.NbParticipant = 3
mAppointment.Participant[1] = "Romain"
mAppointment.Participant[2] = "Lucas"
mAppointment.Participant[3] = "Stéphane"
// Ajout du rendez-vous
IF AppointmentAdd(IDSession) = True THEN
Info("Rendez-vous ajouté")
ELSE
Error("Erreur lors de l'ajout", ErrorInfo())
END
AndroidAndroid Widget iPhone/iPad
gRDV is Appointment
gCal is Calendar
tabCalendrier is array of Calendar
// Récupère la liste des calendriers
tabCalendrier = AppointmentListCalendar()
gCal = tabCalendrier[1]
 
// Ajout d'un nouveau rendez-vous dans le premier calendrier
gRDV.Title = SAI_Titre
gRDV.StartDate = SAI_DateDeb + SAI_HeureDeb
gRDV.EndDate = SAI_DateFin + SAI_HeureFin
gRDV.Location = SAI_Lieu
gRDV.Content = SAI_Desc
IF SAI_Fuseau <> "" THEN
gRDV.TimeZone = SAI_Fuseau
END
gRDV.Author = SAI_Auteur
gRDV.Guest = SAI_Invités
gRDV.WholeDay = INT_Jentière[1]
 
IF AppointmentAdd(gCal, gRDV) THEN
ToastDisplay("RDV ajouté")
ELSE
Error(ErrorInfo())
END
Syntax

Adding an appointment to a Lotus Notes or Outlook calendar Hide the details

<Result> = AppointmentAdd(<Session identifier>)
<Result>: Boolean
  • True if the addition was performed,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Session identifier>: Integer
Identifier of session to use. This identifier is returned by one of the following functions: EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
AndroidAndroid Widget iPhone/iPad

Adding an appointment to a calendar on an Android/iOS device Hide the details

<Result> = AppointmentAdd(<Calendar> , <Appointment>)
<Result>: Boolean
  • True if the addition was performed,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Calendar>: Calendar variable
Name of the variable of type Calendar corresponding to the Android/iOS calendar in which the appointment should be added.
<Appointment>: Appointment variable
Name of the variable of type Appointment corresponding to the appointment to be added in the specified Calendar of the device Android/iOS.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)

Calendar of a Lotus Notes or Outlook messaging

  • When creating an appointment with reminder in Outlook, the reminder is immediately displayed regardless of the appointment date.
  • The added appointments are "meeting" appointments (instead of "appointment" appointments). To modify the type of appointment, all you have to do is modify the "AppointmentType" control of the created appointment (with NotesModifyItem for example).
    The different possible values for the types are as follows:
    • "0": appointment
    • "1": anniversary
    • "2": event
    • "3": meeting
    • "4": reminder
    Example:
    NotesModifyItem(ID, "AppointmentType", "0")
  • Versions 18 and later
    In Outlook, the management mode of contacts/participants can be specified when starting the session (EmailStartOutlookSession or OutlookStartSession).
    New in version 18
    In Outlook, the management mode of contacts/participants can be specified when starting the session (EmailStartOutlookSession or OutlookStartSession).
    In Outlook, the management mode of contacts/participants can be specified when starting the session (EmailStartOutlookSession or OutlookStartSession).
Versions 18 and later
AndroidAndroid Widget

Android calendar

  • AppointmentAdd can be used in the emulator but not in the simulator.
New in version 18
AndroidAndroid Widget

Android calendar

  • AppointmentAdd can be used in the emulator but not in the simulator.
AndroidAndroid Widget

Android calendar

  • AppointmentAdd can be used in the emulator but not in the simulator.
Component: wd270com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment