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 / Scheduler functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
SchedulerAddResource (Function)
In french: PlanningAjouteRessource
Adds a new resource into a Scheduler control.
Example
// Adds a resource (a meeting room) into the Scheduler control
// Meeting is the data file that describes the available meeting rooms
SchedulerAddResource(SCH_RoomOccupancy, Meeting.Name + gStoredValue(Meeting.MeetingID))
New in version 2025
WEBDEV - Server code
// Add a resource to the Scheduler control using HTML code
s is string = [
	<p><font color="red">Morgane</font></p>
	<p><font color="#00FF00">(Sales department)</font></p>
]
SchedulerAddResource(PLN_Planning, s + gStoredValue("Morgane"))
Syntax
<Result> = SchedulerAddResource(<Scheduler control> , <Resource> [, <Image>])
<Result>: Integer
  • Index of added resource,
  • -1 if an error occurred. ErrorInfo is used to identify the error.
<Scheduler control>: Control name
Name of Scheduler control into which the resource 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 the added resource. An invisible value can be added by gStoredValue.
New in version 2025
WEBDEV - Server code HTML code can also be used to add rich text and images.s
<Image>: Optional character string
Path and name of the background image for the title of the resource. This image is displayed below the header of the row or column containing the name of the resource.
WEBDEV - Server codeLinuxPHPAjax This parameter is not available.
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
The Scheduler control Unit examples (WEBDEV): The Scheduler control
[ + ] This example explains how to use the Scheduler control. Two uses are presented:
- Filling the schedule by programming,
- Filling the schedule by databinding from a code variable.
Component: wd300mdl.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/12/2024

Send a report | Local help