PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Pre-launched sessions
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
Returns the identifier of AWP context. This identifier can be used to build a URL for example.
Example
// Adds the context into a built URL
LINK_Dyn = PageName + ".awp?client=" + Client + "&" + IdentifierAWPContext()
Syntax
<Result> = IdentifierAWPContext()
<Result>: ANSI character string
  • Identifier of the AWP context,
  • Empty string ("") if the function is useless, in the following cases for example:
    • The current page is not an AWP page.
    • The current page is an AWP page without context.
    • The current page is an Active WEBDEV Page with a context that is not stored on disk.
    • The transmission is performed by cookie.
Remarks
If the default transmission mode is used:
  • During the first display of the page, the two transmission modes are used (transmission by cookie and by url). IdentifierAWPContext returns the identifier of the AWP context.
  • During the next displays:
    • If cookies are enabled, the AWP context identifier is sent via cookies and IdentifierAWPContext returns an empty string ("").
    • If cookies are disabled, the AWP context identifier is sent via URLs. IdentifierAWPContext returns the identifier of the AWP context.

Pre-launched sessions

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 "Initializing the project after connection to the site" event.
Component: wd270page.dll
Minimum version required
  • Version 12
Comments
Click [Add] to post a comment