ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Web Component control
  • Events managed by default
  • Additional events
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Events associated with a Web Component control
Events managed by default
WEBDEV manages the following events by default (order of appearance in the 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)Run when loading the component. By default, this event contains the following line of code:
ExecuteProcess(<Control name>, trtValueAssignment)
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:
ExecuteProcess(<Control name>, trtValueRetrieval)
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: "Declaring the CSS styles": Code corresponding to the CSS code of the Web component. This code was typed when creating the control.
  • JS event: "Initializing the Web component": JS code of 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: 05/26/2022

Send a report | Local help