PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Processes managed by default
  • Optional processes
  • Filtering the records (Browsing table 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 managed by default
WINDEVAndroidiPhone/iPadWindows MobileJava 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 table automatically filled
When this code is run, the table is not filled yet. To force the table to be filled in this code, use:Run when opening the window. (*)

Special case: Browsing table automatically filled
When this code is run, the 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 initializationCode found for a browsing table automatically filled only:

Run once the table was filled. This code allows you to select an element in the table, to add or modify an element.
Entry in the tableRun when the control takes focus
Exit from the tableRun when changing control (TAB key, change of control with the mouse, ...)
Enter in input in a table rowRun when the user selects a row to perform an input in this row.
Exit from a table rowRun when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row.
In this code, the current row corresponds to the row that was selected beforehand.
Java In this code, the current row corresponds to the new selected row.
Displaying a table rowRun when a new row must be displayed in the table: re-display the table, scroll or move in the table, ...

This process is also run when assigning a column. If several columns are assigned by programming, the display code will be run several times.
Tip: To modify several columns, use TableModifyLine rather than the direct assignment.
iPhone/iPad This process is not available in the browsing Table controls for performance reasons.
Selecting a table rowRun when the user selects a row (without input).
Versions 16 and later
This process is also run when the user clicks a cell whose selection mode is set to "Cell Simple Selection" or "Cell: Multiple selection".
New in version 16
This process is also run when the user clicks a cell whose selection mode is set to "Cell Simple Selection" or "Cell: Multiple selection".
This process is also run when the user clicks a cell whose selection mode is set to "Cell Simple Selection" or "Cell: Multiple selection".
Versions 20 and later
AndroidiPhone/iPad Pull to refresh
New in version 20
AndroidiPhone/iPad Pull to refresh
AndroidiPhone/iPad Pull to refresh
This process is automatically added when the "Pull to refresh" feature was enabled ("Details" tab in the description window of the Table control).
This process is run when a refresh gesture is detected on the Table control.
At the end of this process, the refresh bar will be automatically hidden except if TableRefreshVisible was called.
WINDEViPhone/iPadWindows MobileJava Filtering the records (optional process)
Code only found for a browsing table that is automatically filled:
Run just before displaying a row. This process is used to filter the records displayed in the table. This process is presented in details at the end of this page.
WINDEVWindows Mobile Processes for management of Drag and Drop (optional processes)
Code only found for a memory table and for a table on source:
These processes are used to simplify the management of programmed Drag and Drop. The available processes are:
  • Start of source drag/drop
  • End of source drag/drop
  • Entry in target drag/drop
  • Rollover in target drag/drop
  • Drop in target drag/drop
  • Exit from target drag/drop
Note: If one of these processes contains some code, the Drag and Drop is not automatically managed for the table: the Drag and Drop in the table must be managed by programming.

(*) 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 codePHP 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 table automatically filled:
When this code is run, the 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 initialization (Server code)Code only found for a browsing Table control that is automatically filled:
Run once the Table control has been filled. This code is used to select an element in the Table control, to add or modify an element.
Row selection (Server code)Code run when the user selects a row in the Table control.
Row selection (Browser code)Table in AJAX mode
Run when the user selects a row (without input).
Versions 19 and later
Table in Browser mode
Run when the user selects a row (without input)
New in version 19
Table in Browser mode
Run when the user selects a row (without input)
Table in Browser mode
Run when the user selects a row (without input)
Row display (Server code)Run when a new row must be displayed in the Table control: redisplay of the Table control, scrolling or movement inside the Table control, ...
Used to manage the calculated columns.
Versions 19 and later
Row display (Browser code)
New in version 19
Row display (Browser code)
Row display (Browser code)
Versions 19 and later
Table in Browser mode only
Run when a new row must be displayed in the Table control: redisplay of the Table control, scrolling or movement inside the Table control, ...
New in version 19
Table in Browser mode only
Run when a new row must be displayed in the Table control: redisplay of the Table control, scrolling or movement inside the Table control, ...
Table in Browser mode only
Run when a new row must be displayed in the Table control: redisplay of the Table control, scrolling or movement inside the Table control, ...
Table click (Browser code)Run when the Web user selects a row.
Exit from a row (Server code)Table in AJAX mode only
Run when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row
Filtering records (Server code)Code only found for a browsing table that is automatically filled:
Run just before displaying a row. This process is used to filter the records displayed in the table. This process is presented in details at the end of this page.
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 code window.
WINDEV and WINDEV Mobile (Windows Mobile projects)
WINDEV and WINDEV Mobile (Windows Mobile projects)
WEBDEV
WEBDEV
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, ...
Note: The optional processes differ according to the environment (WINDEV, WEBDEV, WINDEV Mobile) and to the development platform.
Filtering the records (Browsing table only)
WINDEVWEBDEV - Server codeWindows MobilePHP The "Filtering the records" process is run just after the display of a table row. Therefore, it is run:
  • when initializing the table.
  • whenever a table row is displayed.
This process is used to filter the records displayed in the table.
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 table (very rare case).
Example:
// -- Filtering records
// Displays the customers who placed orders exceeding 3000 Euros
IF Orders.TotalIOT >=3000 THEN
RESULT True
ELSE
RESULT False
END
In this code, the data handled affects the record currently read by the table. This data comes from the file or from the query linked to the Table control.
WINDEVWINDEV Mobile If an automatic filter is implemented on the table (TableEnableFilter or filter enabled by the user directly), the filter defined by the "Filtering the records" process is combined with the automatic filter.
Note: In WINDEV and WINDEV Mobile, the "Filtering the records" process is an optional process. In WEBDEV, this process is proposed by default.
Before displaying the automatic tooltip of scrollbar
Versions 17 and later
WINDEV In Windows, the tooltip for the scrollbar in a Table control is displayed when the user clicks the "box" of the vertical scrollbar.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the Table control.
  • Total number of rows in the Table control.
  • Information about the element currently displayed in the first row of the Table control in the sorted column.
The "Before displaying the automatic tooltip for the scroll box" process is run just before displaying the tooltip. You can for example display a specific text in the table tooltip via ..ToolTip.
New in version 17
WINDEV In Windows, the tooltip for the scrollbar in a Table control is displayed when the user clicks the "box" of the vertical scrollbar.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the Table control.
  • Total number of rows in the Table control.
  • Information about the element currently displayed in the first row of the Table control in the sorted column.
The "Before displaying the automatic tooltip for the scroll box" process is run just before displaying the tooltip. You can for example display a specific text in the table tooltip via ..ToolTip.
WINDEV In Windows, the tooltip for the scrollbar in a Table control is displayed when the user clicks the "box" of the vertical scrollbar.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the Table control.
  • Total number of rows in the Table control.
  • Information about the element currently displayed in the first row of the Table control in the sorted column.
The "Before displaying the automatic tooltip for the scroll box" process is run just before displaying the tooltip. You can for example display a specific text in the table tooltip via ..ToolTip.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment