AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Agenda
  • Overview
  • How to?
  • Creating an Organizer control based on a data file
  • Creating an Organizer control based on a variable
  • Handling an Organizer control based on a data file or variable
  • Organizer control based on a data file
  • Organizer 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
Organizer control linked to a data file or to a variable
Overview
You have the ability to create Organizer controls linked to data. You can create:
  • an Organizer control based on a data file: the Organizer control will be linked to a data file or to a query. In this case, the data file contains the characteristics of the appointments.
  • an Organizer control based on a variable: the Organizer control will be linked to a variable (a class instance in most cases). In this case, the class lists the appointments with their characteristics.
This makes programming Organizer controls easier: there is no need to use the Organizerxxx functions directly.
How to?

Creating an Organizer control based on a data file

To create an Organizer control based on a data file, you can:
  • use the wizard for creating the Organizer control. To do so, select "Display data from a file or existing query". Answer the questions in the wizard and validate.
  • modify the description of the Organizer control.
To modify the characteristics of an existing Organizer control:
  1. Open the control description window (select "Description" in the context menu).
  2. In the "Content" tab, select "File", and then select the desired data source. 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.
    Remark: If the associated data file does not directly contain the corresponding item, you can set a multi-file link.
  4. Validate the description window of the Organizer control. The Organizer control is now based on a data file.

Creating an Organizer control based on a variable

To create an Organizer control based on a variable, you can:
  • use the wizard for creating the Organizer control. To do so, select "Display data from an existing variable". Answer the questions in the wizard and validate.
  • modify the description of the Organizer control.
To modify the characteristics of an existing Organizer control:
  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. 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 Organizer control. The Organizer control is now based on a variable.
Handling an Organizer control based on a data file or variable

Organizer control based on a data file

Organizer controls based on a data file are very easy to handle:
  • WINDEV If the user is using the Organizer control via the context menu of the control, the additions, deletions and modifications made to the appointments will be automatically applied to the data source linked to the control.
  • WINDEV If the user handles the appointments via a specific window, all you have to do is modify the data file linked to the Organizer control. The displayed data will be automatically updated. It is also possible to use OrganizerDisplay to update the data displayed in the control.
  • WEBDEV - Server codePHP If the Organizer control allows the direct input of appointments, the appointments added into the Organizer control will be automatically added into the data file linked to the control.
  • If the Organizer control allows the modification of the duration and/or the move of appointments, the modifications made to the appointment will be automatically applied to the data file linked to the control.
  • WINDEV The deletion performed in the control is performed at the same time in the linked data source.
  • WEBDEV - Server codePHP By default, the deletion is not allowed in the Organizer control linked to a data source. To allow the deletion of appointments:
    • Display the description of the Organizer control ("Description" in the context menu).
    • In the "Content" tab, check "Allow the deletion (deletes in the data source as well)".
    • Validate.

Organizer control based on a variable

Organizer controls based on a variable are very easy to handle:
  • WINDEV If the user is using the Organizer control via the context menu of the control, the additions, deletions and modifications made to the appointments will be automatically applied to the data source linked to the control.
  • WINDEV If the user handles the appointments via a specific window, all you have to do is modify the elements linked to the Organizer control (class members for example). The displayed data will be automatically updated. It is also possible to use OrganizerDisplay to update the data displayed in the control.
  • WEBDEV - Server codePHP If the Organizer control allows the direct input of appointments, the appointments added into the Organizer control will be automatically added into the data source linked to the control.
  • If the Organizer control allows the modification of the duration and/or the move of appointments, the modifications made to the appointment will be automatically applied to the data source linked to the control.
  • WINDEV The deletion performed in the control is performed at the same time in the linked data source.
  • WEBDEV - Server codePHP By default, the deletion is not allowed in the Organizer control linked to a data source. To allow the deletion of appointments:
    • Display the description of the Organizer control ("Description" in the context menu).
    • In the "Content" tab, check "Allow the deletion (deletes in the data source as well)".
    • Validate.
Related Examples:
WW_Organizer Training (WEBDEV): WW_Organizer
[ + ] The WW_Organizer example is an example for using the Organizer control of WEBDEV.
Versión mínima requerida
  • Versión 16
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local