you can write with jscript in beas-script
beas use the wsh Object MSScriptControl.ScriptControl
the jscript-object is only visible in the current window from first call to close-window
or you call a vbscript-Function
you can define functions with
[js]
// your code
[/js]
or in one line
jscript=your code
and can execute and get the result with
messagebox=<js.yourcode>
Examples: create correct URI-String
message=<js.encodeURI('//hello world');>
return "//hello%20world"
Example: input string, convert in URI-String
Use [] for placeholder in <> - Placeholder
input=String -> uri-String=ls_uri
messagebox=<js.encodeURI('[ls_uri]')>
Work with objects
string ls_firstname=James
string ls_secondname=Bond
[js]
var myObject = new Object();
myObject.name = "<ls_firstname>";
myObject.age = "22";
myObject.phone = "555 1234";
[/js]
message=<js.myObject.name>
jscript.myObject.name="<ls_secondname>";
message=<js.myObject.name>
Return James and then Bond
More Information: see vbscript