ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Organizer functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Adds a new appointment to an Organizer control.
WINDEVWEBDEV - Server codePHP If the Organizer control is bound to a data source, the appointment is also added to the data source.
Example
// Ajoute un rendez-vous en précisant ses caractéristiques
OrganizerAddAppointment(AGD_Agenda, "Rendez-vous chez le dentiste", "202310291800", "202310291900")
// Ajoute un rendez-vous en utilisant le type RendezVous
gMonRendezVous is Appointment
gMonRendezVous.Title = "Rendez-vous avec l'expert comptable"
gMonRendezVous.Location = "12 rue des fleurs, Montpellier"
gMonRendezVous.Content = "Ne pas oublier les dossiers en cours"
gMonRendezVous.StartDate = "202310291800"
gMonRendezVous.EndDate = "202310291900"
OrganizerAddAppointment(AGD_Agenda, gMonRendezVous)
// Ajoute un rendez-vous en utilisant le type RendezVous et avec répétition
// Tous les premier lundi du mois 
// un Lundi dans les jours de 1 à 7 du mois = le 1er du mois.

x is Appointment
x.StartDate = Today() + "1200"
x.EndDate = Today() + "1400"
x.WithRepetition = True
y is Repetition
y.Type = schEveryDay
y.DayOfWeek = 1 
y.DayOfMonth = "1-7" 
y.DayOfMonthOrDayOfWeek = False
x.Repetition = y
OrganizerAddAppointment(AGD_Agenda, x)
Syntax

Adding an appointment while specifying its characteristics Hide the details

<Result> = OrganizerAddAppointment(<Organizer control> , <Title> , <Start date> [, <End date> [, <Category>]])
<Result>: entier
  • Index of added appointment,
  • -1 if an error occurred. ErrorInfo is used to identify the error.
<Organizer control>: Control name
Name of the Organizer control to be used. This field may correspond to:
  • WINDEVAndroidiPhone/iPadMac Catalyst an Organizer control in a window.
  • an Organizer control in a report.
  • WEBDEV - Server codePHP an Organizer control in a page.
<Title>: Character string
Title of appointment.
<Start date>: Character string or DateTime variable
Start date and time of the appointment.
<End date>: Optional character string or optional DateTime variable
End date and time of the appointment. If this parameter is not specified, the default duration of the appointment will be set to 1 hour.
<Category>: Optional character string
Name of category associated with the appointment. If this parameter is not specified, the appointment is associated with no category. The category is automatically created if it does not exist.

Adding an appointment into an Organizer control while using the Appointment type Hide the details

<Result> = OrganizerAddAppointment(<Organizer control> , <Appointment>)
<Result>: entier
  • Index of added appointment,
  • -1 if an error occurred. ErrorInfo is used to identify the error.
<Organizer control>: Control name
Name of the Organizer control to be used. This field may correspond to:
  • WINDEVAndroidiPhone/iPadMac Catalyst an Organizer control in a window.
  • an Organizer control in a report.
  • WEBDEV - Server codePHP an Organizer control in a page.
<Appointment>: Appointment variable
Name of the Appointment variable that describes the characteristics of the appointment to be added.
Related Examples:
WD Organizer Complete examples (WINDEV): WD Organizer
[ + ] This example is used to synchronize some appointments between your Outlook, Lotus Notes and Google calendars.

Based on the Organizer control, you have the ability to create, modify, move or delete the appointments.
you also have the ability to classify the appointments by category and to link them to several external organizers.
WD Handling the Organizer control Training (WINDEV): WD Handling the Organizer control
[ + ] WD Handling the Organizer control is a simple example for using the Organizer control.

The following features are used:
- Creating an appointment
- Saving an organizer
- Restoring an organizer
Component: wd300mdl.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help