ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Page functions
  • Events run when changing the internal page
  • Limitations
  • SourcePage property
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
ChangeSourcePage (Function)
In french: ChangePageSource
Dynamically changes the page displayed in an Internal Page control. During this modification, parameters can be passed to the new internal page.
As of version 2024, this function is available in Ajax calls.. This function allows internal pages to be changed using Ajax programming.. This makes it possible to split and structure a page containing a large number of fields.. This function is particularly useful in SPA (Single-Page Application) applications.
Example
// Charge la page interne PI_PageInterne dans le champ Page interne PI_ChampPageInterne
ChangeSourcePage(PI_ChampPageInterne, PI_PageInterne)
Syntax
ChangeSourcePage(<Internal Page control> , <Internal page> [, <Parameter 1> [... [, <Parameter N>]]])
<Internal Page control>: Control name
Name of the Internal Page control that will be modified.
<Internal page>: Name of internal page
Name of the internal page that will be associated with the Internal Page control.
<Parameter 1>: Type corresponding to the parameter (optional)
First parameter that will be passed to the internal page.
<Parameter N>: Type corresponding to the parameter (optional)
Nth parameter that will be passed to the internal page.
Remarks

Events run when changing the internal page

The following events are executed when ChangeSourcePage is called:
  • "Before unloading the internal page". This event is associated with the Internal Page control.
  • "Close" event of the previous internal window.
  • "Global declarations" of the new internal page.
  • "Initialization" event of the controls in the new internal page.
  • "Initialization" event of the internal page.
  • "After loading the internal page". This event is associated with the Internal Page control.

Limitations

  • The names and parameters of the called functions must be identical on both pages.
  • If a control of the internal page is used directly from outside, there must be a control with the same name in the new internal page.
  • The values of global variables for the previous internal page are lost.

SourcePage property

The SourcePage property returns the name of the internal page currently displayed in an Internal Page control.
Business / UI classification: UI Code
Component: wd300page.dll
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment

Last update: 11/28/2023

Send a report | Local help