PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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 17 and later
WINDEVReports and Queries This function can now be used to handle the Scheduler controls found in a report.
New in version 17
WINDEVReports and Queries This function can now be used to handle the Scheduler controls found in a report.
WINDEVReports and Queries This function can now be used to handle the Scheduler controls found in a report.
Versions 21 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the 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 the iPhone/iPad applications.
Android This function is now available for the 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 the iPhone/iPad applications.
Android This function is now available for the 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
// Adds a 1-hour appointment for tonight
MyResource is string
MyTitle is string
StartAPT is DateTime

MyResource = "Vince"
MyTitle = "Sales meeting"
StartAPT = DateSys()+ "17000000"

SchedulerAddAppointment(SCH_Schedule, MyResource, MyTitle, StartAPT)
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.
Note: The added element can be directly handled via its subscript by using the following notation:
<Name of Scheduler Control>[<Subscript>]
You have the ability to 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.
Note: The added element can be directly handled via its subscript by using the following notation:
<Name of Scheduler Control>[<Subscript>]
You have the ability to 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 is used to associate an appointment with a 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
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mdl.dll
Linux wd230mdl.so
Android wd230android.jar
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment