ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Code editor
  • Overview
  • Enabling the framework V2
  • How to?
  • When should I use (or not) the new framework?
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Browser code (WLanguage): Framework 2
Overview
Starting with version 22, WEBDEV offers a new WLanguage framework for browser code. This new version allows for more server-focused coding, and largely complements the functionalities of browser code.
Enabling the framework V2

How to?

The new WLanguage framework is enabled globally for a project:
  1. Open the project description window. To do so, go to the "Project" tab, "Project" group, and click "Description".
  2. On the "Advanced" tab, for the "WLanguage browser" option, select "Version 2".
  3. Validate.
Important: To use version 2 of the WLanguage framework, pages must be generated using HTML 5. To define the generation standard:
  1. Open the project description window.
  2. In the "Advanced" tab:
    • Select the "HTML 5" standard.
    • In the generation options ("..." button), check "Force Internet Explorer in HTML5 mode in intranet (X-UA-compatible)".
    If one of these conditions is not fulfilled, the "WLanguage browser" option will be grayed and forced on "Version 1".

When should I use (or not) the new framework?

The new browser framework proposes a behavior close to WLanguage server. Therefore, some behaviors of browser code are modified, especially the method for passing parameters to the procedures.
It is not recommended to modify the generation mode of a project in production to avoid modifying the code behavior and to avoid regressions.
To use the new framework version in an existing project (to benefit from the new features), we advise you to run full tests of different project codes to make sure that the change of framework does not trigger any regression.
When creating a new project, it may be interesting to use the framework in version 2 in order to benefit from the programming comfort of new features.
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 09/18/2024

Send a report | Local help