PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • How to find out whether the initialization of a control was triggered by PageInitialization?
  • Caution
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
PageInitialization (Function)
In French: PageInitialisation
AjaxNot available
Resets to zero (or not) the controls found in the current page and starts the processes for initializing the controls and the page.
Example
// Initialize the controls
//(the controls are reset to blank first)
PageInitialization()
// Initialize the controls
//(don't reset the controls first)
PageInitialization(False)
Syntax
PageInitialization([<Reset>])
<Reset>: Optional boolean
  • True (default value) if the controls must be reset to blank before running the process for initializing the controls and the page,
  • False if the controls must not be reset to blank.
Remarks

How to find out whether the initialization of a control was triggered by PageInitialization?

Use the OPENING variable (boolean) in the initialization code of the control to use.
The OPENING variable is set to:
  • True if the execution of the initialization process was triggered by the opening of the page,
  • False if the execution of the initialization process was triggered by PageInitialization.
Therefore, the execution of processes in the initialization of controls depends on the value of the OPENING variable.
For example, the following code lines are used to initialize the lists if OPENING is set to True:
// Control initialization
IF OPENING = True THEN
...
END

Caution

  • PageInitialization must not be called in the opening process of a page.
  • Do not confuse PageInitialization and Reset that resets all the page controls (without running the initialization process of controls).
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment