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 / Internal Page control
  • Default events
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Default events
Warning: Do not confuse "Internal Page field" and "Internal Page": the "Internal Page field" is a field type and the "Internal Page" is a page type.
WEBDEV manages the following events for "Internal Page" controls:
EventRuntime condition
After loading the internal page
(Server code)
Executed when the internal page is changed by ChangeSourcePage. This event is run after the "Global declarations" and "Initialization" 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)
Executed 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)
Enables you to group together the code for updating page fields: field content, status (visible, grayed, etc.), label to be updated, 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)
Executed when the page is closed.
Remark: Re-entering one of the page fields in this code prevents the page from closing.
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help