PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
  • Events managed by default
  • Optional events
  • 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
Events associated with TreeView Table controls
Events 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 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 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 PHP sites.
Versions 18 and later
WEBDEV - Server codeWEBDEV - Browser code WEBDEV manages the following events by default (order of appearance in the code editor):
EventRuntime 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 control: 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 moving from one row or control to another (TAB key, selecting another control with the mouse, etc.).
Row selection (Browser code)Run when the user selects a row (without input).
Filtering the records (Server code)Code found for the browsing treeview tables automatically filled only
Run just before displaying a row. This event is used to filter the records that must be displayed in the TreeView Table control. This event is detailed at the end of this page.
Collapsing, Expanding a row (Server code)Run when the user collapses or expands a row (or branch).
Remark: the syntax TableName[TableName] used in this event allows you to know the number of the row that is collapsed/expanded.
New in version 18
WEBDEV - Server codeWEBDEV - Browser code WEBDEV manages the following events by default (order of appearance in the code editor):
EventRuntime 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 control: 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 moving from one row or control to another (TAB key, selecting another control with the mouse, etc.).
Row selection (Browser code)Run when the user selects a row (without input).
Filtering the records (Server code)Code found for the browsing treeview tables automatically filled only
Run just before displaying a row. This event is used to filter the records that must be displayed in the TreeView Table control. This event is detailed at the end of this page.
Collapsing, Expanding a row (Server code)Run when the user collapses or expands a row (or branch).
Remark: the syntax TableName[TableName] used in this event allows you to know the number of the row that is collapsed/expanded.
WEBDEV - Server codeWEBDEV - Browser code WEBDEV manages the following events by default (order of appearance in the code editor):
EventRuntime 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 control: 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 moving from one row or control to another (TAB key, selecting another control with the mouse, etc.).
Row selection (Browser code)Run when the user selects a row (without input).
Filtering the records (Server code)Code found for the browsing treeview tables automatically filled only
Run just before displaying a row. This event is used to filter the records that must be displayed in the TreeView Table control. This event is detailed at the end of this page.
Collapsing, Expanding a row (Server code)Run when the user collapses or expands a row (or branch).
Remark: the syntax TableName[TableName] used in this event allows you to know the number of the row that is collapsed/expanded.
Optional events
Several optional events can be managed.
To manage an optional event, simply select it in the icon bar of the code window (bottom right).
You can manage, for example:
  • the mouse hover over the control,
  • the left mouse button down, up, with a double click,
  • right mouse button down, up, with double click,
  • the mouse wheel, etc.
Filtering records (browsing TreeView Table control only)
The event "Filtering the records" is run right after a row of the TreeView Table control is displayed. Therefore, it is run:
  • when initializing the control.
  • whenever a row is displayed in the TreeView Table control.
This event is used to filter the records displayed in the TreeView Table control.
To implement a filter, the event "Filtering the records" 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
DIn this code, the manipulated data concern the Record being 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 applied on the TreeView Table control (TableEnableFilter or filter enabled directly by the user), the filter defined by the event "Filtering records" is added to the automatic filter.
Before displaying the automatic tooltip of scrollbar
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment