PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WEBDEV 25 feature!
  • Events managed by default
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
Caution: Do not confuse "Internal Page control" and "Internal page": the "Internal Page control" is a type of control, while the "Internal page" is a type of page.
WEBDEV manages the following events for "Internal Page" controls:
EventRuntime condition
After loading the internal page
(Server code)
Run when the internal page is changed by ChangeSourcePage. This event is run after the "Global declarations" and "Initializing" events of the new internal page.
This event allows you, for example, to initialize controls or to restore values in the internal page.
ChangeSourcePage must not be used in this event.
Before unloading the internal page
(Server code)
Run when the internal page is changed by ChangeSourcePage. This event is run before the closing event of the initial internal page.
This event is used, for example, to save the values present in the internal page.
ChangeSourcePage must not be used in this event.


WEBDEV manages the following events for Internal pages:
EventRuntime condition
Global declarations
(Server code)
Declaration of variables global to the page. This is the first code run when opening the page.
This code is run before the code for declaring global variables of the host page (page in which the internal page is included).
You can, for example, call a procedure of the internal page from the declaration of global variables of the host page.
Initializing
(Server code)
Run when opening the page.
The events are run in the following order:
  • Initializing the page controls.
  • Initializing the page.
Assigning the ..Value property
(Server code)
Run whenever the ..Value property is assigned to the internal page (direct assignment or assignment performed by Value). This code is used, for example, to retrieve the parameters passed to the internal page.
Retrieving the ..Value property
(Server code)
Run whenever retrieving the ..Value property of the internal page. This code allows the internal page to return a value to the page that hosts the Internal Page control.
Loading (onload) the internal page
(Browser code)
Browser code run when the internal page is displayed in the browser (performed by PageDisplay or PageRefresh, for example).
Request for refreshing the display
(Server code)
Used to group the code for refreshing the page controls: content of controls, state (visible, grayed, etc.), caption to refresh, etc.
This event can receive parameters. Simply declare a procedure in the event. For example:
// Request for refreshing the display
PROCEDURE AskForRefresh(RefreshType is boolean)
This event is started upon request by the following functions:
When these functions are called, you can specify the value of the parameters expected by the event.
Closing
(Server code)
Run when closing the page.
Remark: Resuming the input in one of the page controls in this code prevents the page from closing.
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment