PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Operating mode
  • Automatic management
  • Advanced management
  • Special case
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
The page contexts
Overview
In a Windows application, the information relative to a window is stored with the window.
In a dynamic WEBDEV site, a page context exists on the server for each page displayed on the browser of the Web user.
The page context groups the information about the page:
  • content of controls,
  • local variables,
  • global variables,
  • WLanguage "server" code, ...
Operating mode

Automatic management

By default, WEBDEV automatically manages the contexts of dynamic pages:
  • A page context is opened when the dynamic page is displayed in the browser.
  • The context of a page is updated according to the information typed by the Web user in the browser. This update is performed during the page validation (via a "Submit" button or with PageSubmit).
  • The existing page contexts are closed when using PageUse or FramesetUse. Then, the page contexts corresponding to the pages to display are opened.

Advanced management

WEBDEV allows you to perform an advanced management of contexts via the ContextXXX functions.
You can:
  • open the page context without displaying it on the browser (ContextOpen),
  • check the existence of a page context on the server (ContextExist),
  • close the context of an unused page (ContextClose).
This advanced management of page contexts can be used to:
  • Save memory on the server (by closing the contexts of pages previously opened but unused for example).
  • Prepare the pages intended to communicate with other applications (the page receiving information back from a site for secure payment for example).
  • Use the pages from other pages.

Special case

When using the browser "Back" key, a desynchronization may occur between the page and its context. See Managing the browser "Back" key. for more details
See also
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment