PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Processes managed by default
  • Processes managed by WINDEV and WINDEV Mobile
  • Processes managed by WEBDEV
  • Special case: Collapsed/Expanded node
  • Optional processes
  • Filtering records (browsing treeview only)
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
Processes associated with the TreeView controls
Processes managed by default
WINDEVWindows MobileJava

Processes managed by WINDEV and WINDEV Mobile

WINDEV and WINDEV Mobile manage the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
InitializationRun when opening the window. Used to initialize the content of the TreeView control for example. (*)
Versions 16 and later
End of initialization
New in version 16
End of initialization
End of initialization
Code only found for the browsing TreeView controls automatically filled:
Run once the TreeView control was filled. This code is used to expand or collapse an element.
EntryRun when the mouse cursor is positioned on the TreeView control.
ExitRun when the control is no longer selected.
ClickRun when the user clicks an element of the TreeView control.
Caution: When a double click is performed on an element, the click code and the double-click code are run successively.
Versions 16 and later
Enter a row in input
New in version 16
Enter a row in input
Enter a row in input
Run when the user selects a row to perform an input in this row.
Caution: This code is available only if the input is allowed by the TreeView control.
Versions 16 and later
Row exit
New in version 16
Row exit
Row exit
Run when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row.
Caution: This code is available only if the input is allowed by the TreeView control.
Versions 16 and later
Row display
New in version 16
Row display
Row display
Run when a new row must be displayed in the TreeView control.
Row selectionRun when a new element is selected in the TreeView control.
Right clickRun when the user performs a right click on the TreeView control (or on one of its elements).
Double clickRun when the user performs a double click on the TreeView control (or on one of its elements).
Collapsing, expanding a nodeRun when a branch of the TreeView control is expanded or collapsed via a click or a double click performed by the user or via the + or - icons.

Caution: During a click or a double click, this process is run with the click process. This process is run before the requested action is performed.

Note: This process can accept parameters (see below).
Versions 16 and later
Filtering records
(optional process)
New in version 16
Filtering records
(optional process)
Filtering records
(optional process)
Process taken into account for the browsing treeviews only
Run just before displaying a row. This process is used to filter the records displayed in the TreeView control. This process is presented in details at the end of this page.

(*) By default, the "Initializing" process of each control is run according to the creation order of controls in the window. To modify this runtime order:
  1. Select "Windows .. Edit the initialization order".On the "Window" pane, in the "Order" group, click "Initialization".
  2. In the window that is displayed, use the arrows on the right to modify the initialization order of controls.
WEBDEV - Server codeWEBDEV - Browser codeAjax

Processes managed by WEBDEV

WEBDEV manages the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
InitializationRun when opening the window. Used to initialize the content of the TreeView control for example.
Click (browser)Run on the computer of the Web user when the user clicks an element of the TreeView control.
Click (server)Run on the server when the user clicks an element of the TreeView control.
Special case: Collapsed/Expanded node
WINDEVWindows MobileJava The "Collapse, expand a node" process is run when a branch of the TreeView control is collapsed or expanded by a click or a double click performed by the user.
Caution: This process must not delete the current node.
This process can accept parameters.
To manage these parameters, a procedure must be declared in the "Collapse, expand a node" process.
The procedure must be declared with the following syntax:
PROCEDURE <Procedure Name>([<Element Path> [, <Collapsed> [, <Identifier> ]]])
Where
<Element Path>Text variable, containing the full path of the element currently collapsed or expanded. All you have to do is specify the name of a variable, this variable will be automatically initialized at run time.
<Collapsed>Boolean variable, used to find out the action performed by the user (collapse = True, expand = False). All you have to do is specify the name of a variable, this variable will be automatically initialized at run time.
Versions 15 and later
<Identifier>
New in version 15
<Identifier>
<Identifier>
Versions 15 and later
Text variable, containing the identifier of the element currently collapsed or expanded. All you have to do is specify the name of a variable, this variable will be automatically initialized at run time. The identifier was supplied during the call to TreeAdd.
New in version 15
Text variable, containing the identifier of the element currently collapsed or expanded. All you have to do is specify the name of a variable, this variable will be automatically initialized at run time. The identifier was supplied during the call to TreeAdd.
Text variable, containing the identifier of the element currently collapsed or expanded. All you have to do is specify the name of a variable, this variable will be automatically initialized at run time. The identifier was supplied during the call to TreeAdd.
Versions 16 and later
Java A procedure can be declared in the "Collapse, Expand a node" process.
New in version 16
Java A procedure can be declared in the "Collapse, Expand a node" process.
Java A procedure can be declared in the "Collapse, Expand a node" process.
Example:
Optional processes
WINDEVWindows MobileJava Several optional processes can be managed.
To manage an optional process, all you have to do is select it in the icon bar of code window.
To add an optional process:
  1. Select the requested control.
  2. Display the code window of this control ([F2] key).
  3. Click the link "Add other processes to xxx" found at the end of window code, after the last process.
  4. All the optional processes available for the control are displayed.
  5. Check the optional process to add and validate.
    Note: You have the ability to select several optional processes.
  6. The selected optional process is automatically added into the processes managed by the control
To disable an optional process, perform the same operations to display the list of optional processes. Then, all you have to do is uncheck the optional processes to delete.
Note: If the disabled code contains WLanguage code, this code is automatically deleted.
You have the ability to manage:
  • the control rollover with the mouse,
  • the left mouse button down, up, with a double click,
  • the right mouse button down, up, with double click,
  • the mouse wheel.
Filtering records (browsing treeview only)
Versions 16 and later
WINDEVWindows Mobile The "Filtering records" process is run just after the display of a row of the TreeView control. Therefore, it is run:
  • when initializing the TreeView control.
  • whenever displaying a new row of the TreeView control.
This process is used to filter the records displayed in the TreeView control.
To implement a filter, the "Filtering records" process must return a value:
  • True to specify that the record matches to the filter and that it must be displayed.
  • False to specify that the record does not match the filter and that it must not be displayed.
  • Cancel to stop reading the data source of the Treeview control (very rare case).
Example:
// -- Filter the records
// Displays the customers who placed orders exceeding 3000 Euros
IF Order.TotalIOT >= 3000 THEN
RESULT True
ELSE
RESULT False
END
In this code, the data used affects the record currently read by the TreeView control. This data comes from the date file or from the query linked to the TreeView control.
New in version 16
WINDEVWindows Mobile The "Filtering records" process is run just after the display of a row of the TreeView control. Therefore, it is run:
  • when initializing the TreeView control.
  • whenever displaying a new row of the TreeView control.
This process is used to filter the records displayed in the TreeView control.
To implement a filter, the "Filtering records" process must return a value:
  • True to specify that the record matches to the filter and that it must be displayed.
  • False to specify that the record does not match the filter and that it must not be displayed.
  • Cancel to stop reading the data source of the Treeview control (very rare case).
Example:
// -- Filter the records
// Displays the customers who placed orders exceeding 3000 Euros
IF Order.TotalIOT >= 3000 THEN
RESULT True
ELSE
RESULT False
END
In this code, the data used affects the record currently read by the TreeView control. This data comes from the date file or from the query linked to the TreeView control.
WINDEVWindows Mobile The "Filtering records" process is run just after the display of a row of the TreeView control. Therefore, it is run:
  • when initializing the TreeView control.
  • whenever displaying a new row of the TreeView control.
This process is used to filter the records displayed in the TreeView control.
To implement a filter, the "Filtering records" process must return a value:
  • True to specify that the record matches to the filter and that it must be displayed.
  • False to specify that the record does not match the filter and that it must not be displayed.
  • Cancel to stop reading the data source of the Treeview control (very rare case).
Example:
// -- Filter the records
// Displays the customers who placed orders exceeding 3000 Euros
IF Order.TotalIOT >= 3000 THEN
RESULT True
ELSE
RESULT False
END
In this code, the data used affects the record currently read by the TreeView control. This data comes from the date file or from the query linked to the TreeView control.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment