PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Creating a control from a variable found in the project explorer
  • Notes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The databinding is used to link the variables in memory to:
  • the controls of a window.
  • the controls of a page.
  • Versions 15 and later
    a report (data source).
    New in version 15
    a report (data source).
    a report (data source).
When creating a control (table, list box, ...), the wizard proposes to link this control to a variable of your project (global variable or variable used in the current window or in the current page).
You also have the ability to create the control and to link it to the variable by Drag and Drop from the project explorer.
Versions 15 and later
When creating a report, the wizard proposes to link the report with a data source of variable type. See Report on variable for more details.
New in version 15
When creating a report, the wizard proposes to link the report with a data source of variable type. See Report on variable for more details.
When creating a report, the wizard proposes to link the report with a data source of variable type. See Report on variable for more details.
Versions 22 and later
Android The databinding is now available.
New in version 22
Android The databinding is now available.
Android The databinding is now available.
How to proceed?

Creating a control from a variable found in the project explorer

To create a control from a variable found in the project explorer:
  1. Display the "Project explorer" pane if necessary ("Display .. Toolbars .. Panes .. Project explorer").Display the "Project explorer" pane if necessary: on the "Home" pane, in the "Environment" group, expand "Panes" and select "Project explorer".
  2. Use the button to display in the explorer the element that is currently displayed in the editor. The details of the variables available from the window or from the page are displayed in the explorer.
  3. Drag and Drop the requested variable to the current window or to the current page:
    • an edit control will be automatically created for a simple variable, a class member, a structure member or an advanced member.
    • a Table control will be automatically created for an Array variable.
    • an edit control will be created for each simple member of class variables, structure variables or advanced variables. For the members corresponding to an advanced type, the Drag and Drop of this member must be performed separately.

Notes

  • Drag and Drop of variables must be performed from the project explorer (and not from the "Project treeview" pane).
  • For the classes, the created controls are associated with a class instance (which means with a Class variable). To create these controls, you must select the class variable found in the variables of the window or page (and not the class found in the "Classes" section of the project explorer).
  • The "Classes" section found in the project explorer lists the declarations of classes (and not the instances of classes).
Related Examples:
WD DataBinding Training (WINDEV): WD DataBinding
[ + ] The "WD DataBinding" example explains how to link a control and a WLanguage variable.

This example includes two windows:
- A first window presents a simple link between the controls and a composite variable.
- A second window presents a link between a table control and a WLanguage class as well as the link between the table and a detailed form
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment