General Specifics
The following general specifics apply to JavaScript for the Designer:
Limitations
- There are some limitations to array handling due to the ECMA standard. This is discussed on JavaScript Type Mapping > Arrays.
- You cannot call operations that are defined on Designer classes from a JavaScript. This applies to both static and non-static operations.
Exception Handling
Thrown exceptions will be propagated outside the operation as standard Runtime exceptions. All JavaScript exceptions will be reported to the Designer as SCRIPTSM/1
. They can be caught using the JavaScript statement try{} catch(){}
. You can throw a user-defined exception using the
throw
statement.