Need API to execute another AquaScript within a script
![]() |
139 B
![]() |
228 B
aqua.runScript()
Any way to pass parameters such as aqua.runScript(path, Properties) to I can get them in the script with something like aqua.request.getParameter()?
Any way to pass parameters such as aqua.runScript(path, Properties) to I can get them in the script with something like aqua.request.getParameter()?
aqua.runScript(String path, Object arg);
Example:
var args =
{
a : 5,
b : 6
};
var rv = aqua.runScript("0 nested script 2.xjs", args);
print("return value: " + rv);
script arguments are placed in 'arguments' variable in the script global scope:
print("nested script");
print("arg=" + arguments);
see attached scripts.
aqua.runScript(String path, Object arg);
Example:
var args =
{
a : 5,
b : 6
};
var rv = aqua.runScript("0 nested script 2.xjs", args);
print("return value: " + rv);
script arguments are placed in 'arguments' variable in the script global scope:
print("nested script");
print("arg=" + arguments);
see attached scripts.
Can't get this to work, don't know why :
var x = aqua.system.runScript("runCommand.xjs");
//var args =
//{
// a : 5,
// b : 6
//};
//var rv = aqua.system.runScript("0 nested script 2.xjs", args);
//aqua.console.print("return value: " + rv);
//aqua.console.print("nested script");
//aqua.console.print("arg=" + arguments);
Can't get this to work, don't know why :
var x = aqua.system.runScript("runCommand.xjs");
//var args =
//{
// a : 5,
// b : 6
//};
//var rv = aqua.system.runScript("0 nested script 2.xjs", args);
//aqua.console.print("return value: " + rv);
//aqua.console.print("nested script");
//aqua.console.print("arg=" + arguments);
Issue #3472 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
aqua.runScript()