|
|
|
|
|
- Overview
- Control found in a window, page or report
- Creating a Scheduler control (window and page editor)
- Describing a scheduler (window and page editor)
- The control options (window editor and page editor)
- A deletable appointment
- Modes for filling a Scheduler control
Control found in a window, page or report The Scheduler control is used to automatically display and handle schedules. It is used to manage the display of multiple resources and it is used in several applications or sites. The display is performed: - on a daily, weekly or montly basis,
The time slot, the first day of the week and the number of days to display can be configured. These parameters can be easily defined in the control description window. Creating a Scheduler control (window and page editor) To create a Scheduler control: - On the "Creation" tab, in the "Graphic controls" group, expand "Time" and select "Scheduler".
- Click where the control will be created in the window or page.
The Scheduler control creation wizard starts. Answer the questions and validate. - The control appears in the editor.
Remark: The dimensions of the control are optimized to take up the available space at the specified position. If the control size does not suit you, press Ctrl + Z: the control size will be reset to default.To view the characteristics of the control, select "Description" in the context menu. Describing a scheduler (window and page editor) The control options (window editor and page editor) The Scheduler control can be customized in the editor, via the description window. The "Details" tab of the Scheduler control contains the following settings: - With buttons to change the time range: This option adds buttons to allow the user to scroll through the different periods of the schedule. These buttons are displayed at the top left of schedule.
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) Number of days to display: By default, schedules are displayed by month, but can also be displayed by day, 5 or 7-day week, depending on the number of appointments or on the given number of days. - Resource display mode: By default, resources are displayed by rows.
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) They can also be displayed by columns. - Time display: Used to define:
- the format of the date displayed for the "day" columns (or rows) of the scheduler.
- whether the time must be displayed or not in the control.
- the format of the time displayed for the "day" columns (or rows) of scheduler.
- whether the week number must be displayed or not, as well as its format. In the format, the '%1' string corresponds to the week number. Example of format: "Wk. %1".
- Time slot: Used to define:
- the time slot shown: Time slot that will be shown in the control.
- the working time slot: Time slot for which an appointment can be defined.
- Appointments: Used to specify the characteristics of the appointments:
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) Overlap: Appointment overlap options. The appointments can be displayed side by side or slightly shifted. Appointment granularity: Precision for displaying the schedule. By default, the granularity is set to 30 minutes. You can define: - the granularity regarding the move of an appointment.
- the granularity of the appointment duration, which means the minimum duration of an appointment. Caution: by default, this duration is set to 24 hours.
- Other parameters:
- Allow direct input of an appointment: Allows the user to add an appointment directly.
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) To do so, click the Scheduler control to create the appointment and enter its caption via the keyboard.
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) Display and allow the appointments for the entire day: Used to specify that an appointment can correspond to a whole day. In this case, a specific area is displayed in the Scheduler control. This area is used to enter the daily appointments.
Examples: - if the schedule is displayed with the resources in rows:
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) In WEBDEV:
- if the schedule is displayed with the resources in columns:
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) In WEBDEV:
The editing options via the mouse are as follows: ![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) Change duration. You can allow or prevent users from changing the duration of appointments. - Move. You can allow or prevent users from moving appointments.
The options regarding the dimension of areas are as follows: ![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) if the resources are displayed in rows: ![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) Minimum width of an hour. The width of the day is calculated according to the number of hours displayed. - Minimum height of a resource.
- Width of the resource header.
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) if the resources are displayed in columns: - Minimum width of the resource.
![WEBDEV - Server code WEBDEV - Server code](https://doc.windev.com/ext/images/us/WBS.png?-1123132264) Time minimum height. The height of the day is calculated according to the number of hours displayed. - Height of the break (for changing day)
Most of these parameters can be modified through programming. For more details, see Scheduler control properties. Modes for filling a Scheduler control
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
|
|
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.
|
|
Complete examples (WEBDEV): WW_Schedule
[ + ] This example is used to dynamically display the tasks of the different contributors. You have the ability to add, modify or delete tasks by clicking the schedule elements. All the operations are performed via AJAX. This example is also used to move a control by programming.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|