ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Scheduler control
  • Overview
  • How to?
  • Creating a Scheduler control based on a data file
  • Creating a Scheduler control based on a variable
  • Handling a Scheduler control file or a variable-based Scheduler control field
  • Scheduler control file
  • Scheduler control based on a variable
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
New Scheduler controls can be directly linked to the data. You can create:
  • a Scheduler control file field Scheduler control: the Scheduler control will be linked to a data file or a query. In this case, the data file contains the characteristics of the appointments.
  • an Scheduler control on a variable: the Scheduler control will be linked to a variable (usually a class instance). In this case, the class lists the appointments with their characteristics.
This makes programming Scheduler controls easier.
How to?

Creating a Scheduler control based on a data file

To create a Scheduler control based on a data file, you can:
  • use the Scheduler control creation wizard. Simply select the option "Display data from an existing data file or query". Answer the questions in the wizard and validate.
  • change the description of the Scheduler control.
To change the characteristics of an existing Scheduler control:
  1. Open the control description window (select "Description" in the context menu).
  2. In the "Content" tab, select the "Data file/Query" option and choose the data source you wish to use. This data source can be:
    • a data file defined in the analysis,
    • a query of the project,
    • a query included in the window or page.
  3. Bind the different items of the data source to the characteristics of the appointment. The elements preceded by a star are mandatory.
    Note If the associated data file does not directly contain the corresponding item, it is possible to create a multi-file binding.
  4. Validate the description window of the Scheduler control. The Scheduler control is now based on a data file.

Creating a Scheduler control based on a variable

To create a Scheduler control based on a variable, you can:
  • use the Scheduler control creation wizard. To do so, select "Display data from an existing variable". Answer the questions in the wizard and validate.
  • change the description of the Scheduler control.
To change the characteristics of an existing Scheduler control:
  1. Open the control description window (select "Description" in the context menu).
  2. In the "Content" tab, select the "Variable" option and select the data source used (class, etc.).
  3. Bind the different elements (class members, for example) of the data source to the characteristics of the appointment. The elements preceded by a star are mandatory.
  4. Validate the description window of the Scheduler control. The Scheduler control is now based on a variable.
Handling a Scheduler control file or a variable-based Scheduler control field

Scheduler control file

Scheduler controls based on a data file are very easy to handle:
  • WINDEV If the user handles the scheduler via the context menu (to add, delete or modify appointments, for example), the associated data file is automatically updated with the changes made in the control.
  • WEBDEV - Server code If the user adds, deletes, or moves appointments with the mouse, the associated data file is automatically updated with the changes made in the control.
  • If the user handles the appointments via a specific window or page, it is necessary to directly modify the data file linked to the Scheduler control. The displayed data will be automatically updated. It is also possible to use SchedulerDisplay to update the data displayed in the control.
Remark: If the field is linked to a data source, any deletion made in the field is also made in the linked data source..

Scheduler control based on a variable

Scheduler controls based on a variable are very easy to handle:
  • WINDEV If the user handles the scheduler via the context menu (to add, delete or modify appointments, for example), the data source is automatically updated with the changes made in the control.
  • WEBDEV - Server code If the user adds, deletes, or moves appointments with the mouse, the data source is automatically updated with the changes made in the control.
  • If the user handles the appointments via a specific window or page, it is necessary to directly modify the elements linked to the Scheduler control (class members, for example). The displayed data will be automatically updated. It is also possible to use SchedulerDisplay to update the data displayed in the control.
Remark: If the field is linked to a data source, any deletion made in the field is also made in the linked data source..
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/29/2024

Send a report | Local help