PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Summary diagram
  • 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
A window or a page can display information coming from:
  • a database: the controls are directly linked to the items of data files or queries available in the database.
  • variables found in the code of the application (global variables of the window, page or project, class members, ...).
    AndroidAndroid Widget Not available.
  • Versions 15 and later
    members or properties of .Net objects.
    New in version 15
    members or properties of .Net objects.
    members or properties of .Net objects.
  • Versions 15 and later
    .Net Object variables (to WLanguage arrays containing.Net Objects).
    New in version 15
    .Net Object variables (to WLanguage arrays containing.Net Objects).
    .Net Object variables (to WLanguage arrays containing.Net Objects).
To display this information in a window or in a page, the controls found this window or in this page must be linked to:
  • the different database items.
  • the available WLanguage variables (Databinding).
    AndroidAndroid Widget Not available.
The method for displaying and retrieving the information is straightforward:
  • The link between a control and an item or a variable is defined in the window editor or in the page editor when the describing the control ("Link" tab).
  • ScreenToFile (or ScreenToSource) is used to update the record or the variable with the data found on the screen.
    For the pages, you must use PageToFile (or PageToSource).
  • FileToScreen (or SourceToScreen) is used to update the data displayed on the screen with the data found in the record or in the variable.
    For the pages, you must use FileToPage (or SourceToPage).
Summary diagram
 
Notes
  • When performing a Drag and Drop of an item or variable toward a page or a window, the corresponding control is automatically created with the corresponding link.
    See Databinding from the project explorer for more details.
  • Most types of controls can be linked to an item found in a data file or to a variable. See the documentation about this type of control for more details.
  • The databinding on the Table controls requires a specific management: the method for managing the tables on source differs from the method for managing the browsing tables. See Specific features of databinding on the Table control for more details.
  • Limitations:
    • The two-dimensional WLanguage arrays cannot be used by the databinding.
    • The associative arrays cannot be used by the databinding.
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