PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Events managed by default
  • Optional events
  • 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
Events managed by default
WEBDEV - Server codeWEBDEV - Browser codePHP WEBDEV manages the following events by default (order of appearance in the code editor):
EventRuntime condition
Initialization (Server code)Run when the page is opened.
Special case: Browsing Table control filled automatically:
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 present for an Table control automatically filled file:
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)control Table in AJAXmode
Run when the user selects a row (without input).
Versions 19 and later
control Table in Browser mode
Run when the user selects a row (without input)
New in version 19
control Table in Browser mode
Run when the user selects a row (without input)
control 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: redisplaying the Table control, scrolling or moving in the Table control, etc.
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
control Table in Browser mode only
Run when a new row must be displayed in the Table control: redisplaying the Table control, scrolling or moving in the Table control, etc.
New in version 19
control Table in Browser mode only
Run when a new row must be displayed in the Table control: redisplaying the Table control, scrolling or moving in the Table control, etc.
control Table in Browser mode only
Run when a new row must be displayed in the Table control: redisplaying the Table control, scrolling or moving in the Table control, etc.
Table click (Browser code)Run when the Web user selects a row.
Exit from a row (Server code)control Table in AJAX mode only
Run when moving from one row or control to another (TAB key, selecting another control with the mouse, etc.)
Filtering the records (Server code)Code present only for automatically filled browsing Table controls s:
Run just before displaying a row. This event filters the records displayed in the Table control. This event is detailed at the end of this page.
Optional events
Several optional events can be managed. To add an optional event:
  1. Select the requested control.
  2. Display the code window of this control (F2 key).
  3. Click the link "Add other events to xxx" at the bottom of the window code, after the last event.
  4. All the optional events available for the control are displayed.
  5. Check the optional event to add and validate.
    Remark: You can select several optional events.
  6. The selected optional event is automatically added to the events managed by the control.
To disable an optional event, simply perform the same operations to display the list of optional events. Then simply uncheck the optional events to delete.
Remark: If the disabled code contains WLanguage code, this code is automatically deleted.
You can manage, for example:
  • the mouse hover over the control,
  • left mouse button down, up, with a double click,
  • the right mouse button down, up, with double click,
  • the mouse wheel, etc.
Remark: The optional events differ according to the environment (WINDEV, WEBDEV, WINDEV Mobile) and the development platform.
Filtering the records (Browsing table only)
WEBDEV - Server codePHP The event "Filtering the records" is run right after a row of the Table control is displayed. Therefore, it is run:
  • when initializing the Table control.
  • whenever a row is displayed in the Table control.
This event filters the records displayed in the 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 table (very rare case).
Example:
// -- Filtrage des enregistrements
// Affiche uniquement les clients dont commandes sont supérieures à 3000 euros
SI Commande.TotalTTC >=3000 ALORS
RENVOYER Vrai
SINON
RENVOYER Faux
FIN
In this code, the data used affects the record currently read by the Table control. This data comes from the data file or query linked to the Table control.
Remark: In WINDEV and WINDEV Mobile, the event "Recording the records" is an optional event. In WEBDEV, this event is proposed by default.
Before displaying the automatic tooltip of scrollbar
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment