5.11.4 Notes on using JavaScript Plugin parts
-
When an error occurs during a check of the input value of the JavaScript Plugin Part, plugin processing is not executed, and the error is highlighted.
-
You can place multiple JavaScript Plugin Parts in the same guide area. Note that JavaScript Plugin Parts placed in the same guide area must have different plugin names.
-
The JavaScript Plugins having the same plugin name share variables and other execution contexts. For this reason, if JavaScript Plugins having the same plugin name are placed in different guide areas, the variable defined for one plugin can be referenced from another.
-
For client-side JavaScript, to enable a variable to keep its value in the execution context, you must define the variable as a member of this, as described below.
-
Example of how to write JavaScript
To enable the variable localVar0 to keep its value in the execution context and set the value to the string val0, define the variable as follows:
-
this.localVar0 = val0;
Note that a variable that is set as an input or output parameter keeps its value in the execution context even if this definition is omitted.