ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / TimeLine control
  • Overview
  • How to?
  • Creating a TimeLine control based on a data file
  • Creating a TimeLine control based on a variable
  • Handling a TimeLine control based on a data file or variable
  • TimeLine control based on a data file
  • TimeLine control based on a variable
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
You can create TimeLine controls directly linked to the data. You can create:
  • a TimeLine control based on a data file: the TimeLine control will be linked to a data file or to a query. In this case, the data file contains the characteristics of the events.
  • a TimeLine control based on a variable: the TimeLine control will be linked to a variable (a class instance in most cases). In this case, the class lists the events and their characteristics.
The programming of the TimeLine controls is simplified.
How to?

Creating a TimeLine control based on a data file

To create a Timeline control based on a data file:
  1. Open the control description window (select "Description" in the context menu).
  2. In the "Content" tab, select "File/Query" and select the data source used. This data source can be:
    • a data file defined in the analysis,
    • a query of the project,
    • a query included in the window.
  3. Associate the different items of the data source with the characteristics of the event. The elements preceded by a star are mandatory.
    Remark: If the associated data file does not directly contain the corresponding item, you can set a multi-file link.
  4. Validate the TimeLine control description window. The TimeLine control is based on a data file.

Creating a TimeLine control based on a variable

To create a TimeLine control based on a variable:
  1. Open the control description window (select "Description" in the context menu).
  2. In the "Content" tab, select "By variable" and select the data source used (class, ...).
  3. Associate the different elements (members of the class for example) of the data source with the characteristics of the event. The elements preceded by a star are mandatory.
  4. Validate the TimeLine control description window. The TimeLine control is based on a variable.
Handling a TimeLine control based on a data file or variable

TimeLine control based on a data file

TimeLine controls based on a data file are very easy to handle:
  • If the user handles the timeline via the context menu, all additions, deletions and changes made to the events will be automatically applied to the data file linked to the control.
  • If the user handles the events via a specific window, all you have to do is modify the data file linked to the timeline. The displayed data will be automatically refreshed. It is also possible to use TimelineDisplay to refresh the data in the control.
Remark: If the control is linked to a data source, the deletion performed in the control is performed at the same time in the linked data source.

TimeLine control based on a variable

TimeLine controls based on a variable are very easy to handle:
  • If the user handles the timeline via the context menu, all additions, deletions and changes made to the events will be automatically applied to the data source of the control.
  • If the user handles the events via a specific window, all you have to do is modify the elements linked to the timeline (class members for example). The displayed data will be automatically refreshed. It is also possible to use TimelineDisplay to refresh the data in the control.
Remark: If the control is linked to a data source, the deletion performed in the control is performed at the same time in the linked data source.
Minimum version required
  • Version 18
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help