ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Internal Page control
  • Default 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
Default events
Caution: Do not confuse "Internal Page control" and "Internal page": the "Internal Page control" is a type of control and 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)
Executed when the page is opened.
The events are run in the following order:
  • Initializing the page controls.
  • Initializing the page.
Set the Value property
(Server code)
Executed each time the Value property is assigned to the internal page (directly or with the Value property). This code is used, for example, to retrieve the parameters passed to the internal page.
Get the Value property
(Server code)
Executed each time the Value property is retrieved from 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
PROCÉDURE 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)
Executed when the page is closed.
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

Last update: 05/26/2022

Send a report | Local help