Set the JavaScript mode for an application
Configure which ECMAScript features can be used in an application by selecting the JavaScript mode.
Before you begin
Role required: delegated developer role granting full access or admin
About this task
The JavaScript mode is a design and runtime setting for custom applications and scripts. To support existing server-side scripts and new scripts developed to the ECMAScript 2021 standard, the JavaScript engine has three modes: ECMAScript 2021 (ES12), ES5 Standards, and Compatibility. For more information about each mode, see JavaScript modes.
For applications that use ES5 Standards or Compatibility mode, you can also turn on ECMAScript 2021 (ES12) for individual scripts in the application. For more information, see Turn on ECMAScript 2021 (ES12) mode for a script.
Procedure
- In the application navigator, enter sys_app.list.
- Select an application.
-
In the JavaScript Mode field, select the mode to use.
- ECMAScript 2021 (ES12): Supports a subset of ECMAScript 2021 (ES12) and ECMAScript 2022 (ES13) syntax and features.
- ES5 Standards Mode: Supports ECMAScript5 syntax and features.
- Compatibility Mode: Used for all scripts developed prior to the addition of ES5 Standards mode.
- Select Update.