PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Processes managed by default
  • Optional processes
  • Filtering records (browsing TreeView Table control only)
  • Before displaying the automatic tooltip of scrollbar
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 Table controls
Processes managed by default
Versions 18 and later
WEBDEV - Server codeWindowsLinux The TreeView Table control is now available for the WEBDEV sites.
PHP The TreeView Table control is now available for the PHP sites.
New in version 18
WEBDEV - Server codeWindowsLinux The TreeView Table control is now available for the WEBDEV sites.
PHP The TreeView Table control is now available for the PHP sites.
WEBDEV - Server codeWindowsLinux The TreeView Table control is now available for the WEBDEV sites.
PHP The TreeView Table control is now available for the PHP sites.
WINDEVWINDEV 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. *

Special case: Browsing TreeView Table control automatically filled
When this code is run, the TreeView Table control is not filled yet. To force the control to be filled in this code, use:You also have the ability to filter the records with HFilter.
End of initializationCode found for the browsing TreeView Table controls automatically filled:

Run once the control has been filled. This code is used to select an element in the TreeView Table control, to add or modify an element.
Entry in the treeview tableRun when the control takes focus.
Exit from the treeview tableRun when changing control (TAB key, change of control with the mouse, ...).
Entry in input in a row of the treeview tableRun when the user selects a row to perform an input in this row.
Exit from a row of the treeview tableRun when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row.
Row displayRun when a new row must be displayed in the TreeView Table control: re-display the control, scroll or move in the control, ...
Row selectionRun when the user selects a row (without input).
Collapsing, expanding a nodeRun when the user expands or collapses a node.
Note: The syntax TableName[TableName] used in this process allows you to find out the number of the row that is collapsed/expanded.
(*) 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.
Versions 18 and later
WEBDEV - Server codeWEBDEV - Browser code WEBDEV manages the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
Initialization (Server code)Run when opening the page.
Special case: Browsing teeeview table automatically filled:
When this code is run, the treeview table is not filled yet. To force the table to be filled in this code, use:
Run when opening the page.
Special case: Browsing teeeview table automatically filled:
When this code is run, the treeview table is not filled yet. To force the table to be filled in this code, use:
You also have the ability to filter the records with HFilter.
End of initialization (Server code)Code found for the browsing treeview tables automatically filled only
Run once the treeview table is filled. This code allows you to select an element in the table, to add or modify an element.
Selecting a table row (Server code)Code run when the Web user selects a row in the treeview table.
Row display (Server code)Run when a new row must be displayed in the treeview table: re-display the table, scroll or move elements in the treeview table, ...
Used to manage the calculated columns.
Table click (Browser code)Run when the Web user selects a row.
Exit from a row (Server code)Run when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row.
Row selection (Browser code)Run when the user selects a row (without input).
Filtering records (Server code)Code found for the browsing treeview tables automatically filled only
Run just before displaying a row. This process is used to filter the records that must be displayed in the treeview table. This process is presented in details at the end of this page.
Collapsing, Expanding a row (Server code)Run when the user collapses or expands a row (or branch).
Note: the syntax TableName[TableName] used in this process allows you to find out the number of the row that is collapsed/expanded.
New in version 18
WEBDEV - Server codeWEBDEV - Browser code WEBDEV manages the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
Initialization (Server code)Run when opening the page.
Special case: Browsing teeeview table automatically filled:
When this code is run, the treeview table is not filled yet. To force the table to be filled in this code, use:
Run when opening the page.
Special case: Browsing teeeview table automatically filled:
When this code is run, the treeview table is not filled yet. To force the table to be filled in this code, use:
You also have the ability to filter the records with HFilter.
End of initialization (Server code)Code found for the browsing treeview tables automatically filled only
Run once the treeview table is filled. This code allows you to select an element in the table, to add or modify an element.
Selecting a table row (Server code)Code run when the Web user selects a row in the treeview table.
Row display (Server code)Run when a new row must be displayed in the treeview table: re-display the table, scroll or move elements in the treeview table, ...
Used to manage the calculated columns.
Table click (Browser code)Run when the Web user selects a row.
Exit from a row (Server code)Run when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row.
Row selection (Browser code)Run when the user selects a row (without input).
Filtering records (Server code)Code found for the browsing treeview tables automatically filled only
Run just before displaying a row. This process is used to filter the records that must be displayed in the treeview table. This process is presented in details at the end of this page.
Collapsing, Expanding a row (Server code)Run when the user collapses or expands a row (or branch).
Note: the syntax TableName[TableName] used in this process allows you to find out the number of the row that is collapsed/expanded.
WEBDEV - Server codeWEBDEV - Browser code WEBDEV manages the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
Initialization (Server code)Run when opening the page.
Special case: Browsing teeeview table automatically filled:
When this code is run, the treeview table is not filled yet. To force the table to be filled in this code, use:
Run when opening the page.
Special case: Browsing teeeview table automatically filled:
When this code is run, the treeview table is not filled yet. To force the table to be filled in this code, use:
You also have the ability to filter the records with HFilter.
End of initialization (Server code)Code found for the browsing treeview tables automatically filled only
Run once the treeview table is filled. This code allows you to select an element in the table, to add or modify an element.
Selecting a table row (Server code)Code run when the Web user selects a row in the treeview table.
Row display (Server code)Run when a new row must be displayed in the treeview table: re-display the table, scroll or move elements in the treeview table, ...
Used to manage the calculated columns.
Table click (Browser code)Run when the Web user selects a row.
Exit from a row (Server code)Run when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row.
Row selection (Browser code)Run when the user selects a row (without input).
Filtering records (Server code)Code found for the browsing treeview tables automatically filled only
Run just before displaying a row. This process is used to filter the records that must be displayed in the treeview table. This process is presented in details at the end of this page.
Collapsing, Expanding a row (Server code)Run when the user collapses or expands a row (or branch).
Note: the syntax TableName[TableName] used in this process allows you to find out the number of the row that is collapsed/expanded.
Optional processes
Several optional processes can be managed.
To manage an optional process, all you have to do is select it in the icon bar of the code window (bottom right corner).
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 Table control only)
The "Filtering records" process is run just after the display of a row in the TreeView Table control. Therefore, it is run:
  • when initializing the control.
  • whenever a row is displayed in the TreeView Table control.
This process is used to filter the records displayed in the TreeView Table 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 Table 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 Table control. This data comes from the date file or from the query linked to the control.
If an automatic filter is performed on the TreeView Table control (TableEnableFilter or filter enabled by the user directly), the filter defined by the "Filtering records" process is combined with the automatic filter.
Before displaying the automatic tooltip of scrollbar
Versions 17 and later
WINDEV The tooltip for the scrollbar of TreeView Table controls is displayed when the user clicks the "box" of the vertical scrollbar in the treeview table.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the TreeView Table control.
  • Total number of rows in the TreeView Table control.
  • Information about the element currently displayed in the first row of the control in the sorted column.
The optional "Before displaying the automatic tooltip of the scrollbar" process is run just before displaying this tooltip. This allows you for example to display a specific text in the tooltip of the TreeView Table control with ..ToolTip.
New in version 17
WINDEV The tooltip for the scrollbar of TreeView Table controls is displayed when the user clicks the "box" of the vertical scrollbar in the treeview table.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the TreeView Table control.
  • Total number of rows in the TreeView Table control.
  • Information about the element currently displayed in the first row of the control in the sorted column.
The optional "Before displaying the automatic tooltip of the scrollbar" process is run just before displaying this tooltip. This allows you for example to display a specific text in the tooltip of the TreeView Table control with ..ToolTip.
WINDEV The tooltip for the scrollbar of TreeView Table controls is displayed when the user clicks the "box" of the vertical scrollbar in the treeview table.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the TreeView Table control.
  • Total number of rows in the TreeView Table control.
  • Information about the element currently displayed in the first row of the control in the sorted column.
The optional "Before displaying the automatic tooltip of the scrollbar" process is run just before displaying this tooltip. This allows you for example to display a specific text in the tooltip of the TreeView Table control with ..ToolTip.
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment