Hi ,
We are looking to set the variable using setVar function through a javascript as below
setVar('TEST_JAVASCRIPT','','CHECKRC');
here TEST_JAVASCRIPT is variable
'' is empty string
CHECKRC is context
As per the documentation,it says
value Defines the value of the global variable. 0-1024 charactersLimits: To specify an empty string, enter two single quotes ('').
But i am trying to give the value as empty string suggested above it is throwing the below error.
[
Mon Jul 06 03:01:14 PDT 2020] [DEV_R12] - Error executing job-level runtime JavaScript script for job org.mozilla.javascript.WrappedException: Wrapped com.ca.wa.comp.library.script.WAScriptException: setVar: No value specified, please check the syntax. (<wascope>#1). The error is: {2}
Can you help us to resolve this issue?
Note: We have very recently upgraded from R11 to R12. In R11 the above Syntax is working,where as in R12 it shows above issue.
------------------------------
Manoj Kumar
------------------------------