ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Web Component control
  • Default events
  • Additional events
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Web Component control events
Default events
The following events appear by default in the WEBDEV code editor:
EventRuntime condition
Action (Browser)Code that can be directly called from the Web Component. Used to run an action via the HTML or JavaScript code of the control.
Action (Server)Code that can be directly called from the Web Component. Used to run an action via the HTML or JavaScript code of the control.
Assigning the Value property (Browser)Code used to assign a value to the Web Component control.
Get the Value property (Browser)Code used to define the content of the Value property of the Web Component control.
Global declarations (Server)Declaring the global variables linked to the control.
Initialization (Server)Executed when the page is opened.
Load (onload) (Browser)Executed when loading the component. By default, this event contains the following line of code:
ExécuteTraitement(<Nom du champ>, trtAffectationValeur)
This line of code is used to run the "Assigning the Value property" event of the control.
This allows you to give a value to the control for example.
Submit (onsubmit) (Browser)Run:
  • when validating the page (submit).
  • when running the server action of a control.
By default, this event contains the following line of code:
ExécuteTraitement(<Nom du champ>, trtRécupérationValeur)
This line of code is used to run the "Retrieving the Value property" event of the control.
This allows you to store the control value for example.
Additional events
Several additional events are displayed in the code editor:
  • CSS Event: "CSS style declaration": Code corresponding to the CSS code of the Web component. This code was typed when creating the control.
  • JS Event: "Web component initialization": JS code for the Web component. This code was typed when creating the control.
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help