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.
  • Associating an appointment with several resources
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SchedulerAddAppointment (Function)
In french: PlanningAjouteRendezVous
Adds a new appointment into a Scheduler control. If the Scheduler control is linked to a data source, the appointment is also added into the data source.
Versions 21 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App In Universal Windows 10 App mode, this function can only be used to handle the Scheduler controls found in a report.
New in version 21
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App In Universal Windows 10 App mode, this function can only be used to handle the Scheduler controls found in a report.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App In Universal Windows 10 App mode, this function can only be used to handle the Scheduler controls found in a report.
Example
// Ajoute un rendez-vous d'1 heure pour ce soir
MaRessource is string
MonTitre is string
DébutRDV is DateTime
 
MaRessource = "Françoise"
MonTitre = "Réunion commerciale"
DébutRDV = DateSys() + "17000000"
 
SchedulerAddAppointment(PLN_Planning, MaRessource, MonTitre, DébutRDV)
Syntax

Adding an appointment while specifying its characteristics Hide the details

<Result> = SchedulerAddAppointment(<Scheduler control> , <Resource> , <Title> , <Start date> [, <End date> [, <Category>]])
<Result>: Integer
  • Subscript of added appointment,
  • -1 if an error occurred. ErrorInfo is used to identify the error.
Remark: The added element can be manipulated directly through its subscript using the following notation:
<Champ Planning>[<Indice>]
You can modify the properties of this element.
<Scheduler control>: Control name
Name of Scheduler control into which the appointment will be added. This control can correspond to:
  • the Scheduler control of a window,
  • the Scheduler control of a page,
  • Versions 17 and later
    the Scheduler control of a report.
    New in version 17
    the Scheduler control of a report.
    the Scheduler control of a report.
<Resource>: Character string (with quotes)
Name of resource associated with the appointment.
If the schedule resources have been created with SchedulerAddResource by using gLink, this parameter must correspond to the value specified in gLink for this resource.
The resource is automatically created if it does not exist.
<Title>: Character string (with quotes)
Title of appointment.
<Start date>: Character string or DateTime variable
Start date and time of appointment.
<End date>: Optional character string or optional DateTime variable
End date and time of appointment. If this parameter is not specified, the default duration of 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 a Scheduler control by using the Appointment type Hide the details

<Result> = SchedulerAddAppointment(<Scheduler control> , <Appointment>)
<Result>: Optional integer
  • Subscript of added appointment,
  • -1 if an error occurred. ErrorInfo is used to identify the error.
Remark: The added element can be manipulated directly through its subscript using the following notation:
<Champ Planning>[<Indice>]
You can modify the properties of this element.
<Scheduler control>: Control name
Name of Scheduler control into which the appointment will be added. This control can correspond to:
  • the Scheduler control of a window,
  • the Scheduler control of a page,
  • Versions 17 and later
    the Scheduler control of a report.
    New in version 17
    the Scheduler control of a report.
    the Scheduler control of a report.
<Appointment>: Appointment variable
Appointment variable describing the characteristics of appointment to add.
Remarks

Associating an appointment with several resources

SchedulerAddAppointment allows you to associate an appointment with one single resource. To associate the same appointment with several resources, SchedulerAddAppointment must be called for each resource.
Related Examples:
WD Schedule Complete examples (WINDEV): WD Schedule
[ + ] This example presents the management of a graphic schedule.

The following topics are presented in this example:
1/ the scheduler control
2/ the Google Calendar functions
Component: wd260mdl.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment