|
|
|
|
|
- Parameters passed to the page to open
- Multilingual websites
- Principle for opening a page
- Events and codes run when <Page>.Use is called
- Opening a page of an external component
- Miscellaneous
<Page>.Use (Function) In french: <Page>.Utilise Displays a WEBDEV page in the user's browser and closes all page contexts currently open on the server.
Nation(nationEnglish)
PAGE_Login.Use()
Syntax
<Page>.Use([<Parameter 1> [... [, <Parameter N>]]])
<Page>: Page name Name of the page to display.br>In test mode, specify the full path of the page if the page to open is in a directory other than the project directory <Parameter 1>: Type of value sent to the page (optional) Parameter(s) to pass to the opening event of the page to be opened ("Global declarations" event of the page). These parameters are passed by reference and are considered as global variables to the page. <Parameter N>: Type of value sent to the page (optional) Parameter(s) to pass to the opening event of the page to be opened ("Global declarations" event of the page). These parameters are passed by reference and are considered as global variables to the page. Remarks Parameters passed to the page to open The parameters are retrieved in the opening event of the page ("Global declarations" event of the page). Simply write the following line at the beginning of the "global declarations" event: PROCEDURE <Page name> (<Parameter 1> [, ...[, <Parameter N>]]]) Multilingual websites <Page>.Use can be used in multilingual sites. This function is used to reopen a page while taking into account the language specified by Nation. Principle for opening a page <Page>.Use does the following: - close all the opened context on the server
- create a page context on the server
- returning the page to the browser of web user.
Note: If <Page>.Use is used in the code of a Button control, the page will be opened in the target defined for this Button control ("General" tab of the control description or ChangeTarget). Events and codes run when <Page>.Use is called The following events are run when the page is displayed: - Page opening code ( "Global declarations" event of the page).
- "Initialization" event of the page controls.
- Display page in the browser.
- JavaScript code associated with the page and the controls.
- WLanguage code after the call to <Page>.Use (if used).
Miscellaneous - To redisplay a page, it is recommended to use <Page>.Refresh.
- To display a page without closing the contexts opened on the server, we recommend that you use <Page>.Display.
- You should not use WLanguage code after a call to <Page>.Use.
- If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialization in pre-launched session mode" event.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|