|
|
|
|
|
- Associating an appointment with multiple resources
<Scheduler>.AddAppointment (Function) In french: <Planning>.AjouteRendezVous 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.
MaRessource is string
MonTitre is string
DébutRDV is DateTime
MaRessource = "Françoise"
MonTitre = "Réunion commerciale"
DébutRDV = DateSys() + "17000000"
PLN_Planning.AjouteRendezVous(MaRessource, MonTitre, DébutRDV)
Syntax
Adding an appointment while specifying its characteristics Hide the details
<Result> = <Scheduler control>.AddAppointment(<Resource> , <Title> , <Start date> [, <End date> [, <Category>]])
<Result>: Integer - Index of added appointment,
- -1 if an error occurred. ErrorInfo is used to identify the error.
Remark: The added element can be manipulated directly via its index, using the following notation:
<Scheduler control>[<Index>] You can modify the properties of this element.
<Scheduler control>: Control name Name of Scheduler control into which the appointment will be added. This field may correspond to: - the Scheduler control of a window,
- the Scheduler control of a page,
- the Scheduler control of a report.
<Resource>: Character string Name of resource associated with the appointment. If the schedule resources have been created with <Scheduler>.AddResource by using gStoredValue, this parameter must correspond to the value specified in gStoredValue for this resource. The resource is automatically created if it does not exist. <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 a Scheduler control by using the Appointment type Hide the details
<Result> = <Scheduler control>.AddAppointment(<Appointment>)
<Result>: Optional integer - Index of added appointment,
- -1 if an error occurred. ErrorInfo is used to identify the error.
Remark: The added element can be manipulated directly via its index, using the following notation:
<Scheduler control>[<Index>] You can modify the properties of this element.
<Scheduler control>: Control name Name of Scheduler control into which the appointment will be added. This field may correspond to: - the Scheduler control of a window,
- the Scheduler control of a page,
- the Scheduler control of a report.
<Appointment>: Appointment variable Variable of type Appointment describing the characteristics of the appointment to be added. Remarks Associating an appointment with multiple resources <Scheduler>.AddAppointment associates an appointment with a single resource. To associate the same appointment with several resources, function <Scheduler>.AddAppointment must be called for each resource.
Related Examples:
|
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
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|