nashrul
11-06-2008, 12:20 AM
How can we pass a list (ArrayList for example) from Java Script component to the next component in xaction ?? Let's say I have a code like this in my java script.
String params = "jan,feb,mar";
param = params.split(,);
Can I write this in the script output of java script component ??
param[0]
param[1]
param[2]
and reference them in sql lookup like this:
select from order where month in ({PREPARE param[0]},{PREPARE param[1]},{PREPARE param[2]})
Thanks in advance....
String params = "jan,feb,mar";
param = params.split(,);
Can I write this in the script output of java script component ??
param[0]
param[1]
param[2]
and reference them in sql lookup like this:
select from order where month in ({PREPARE param[0]},{PREPARE param[1]},{PREPARE param[2]})
Thanks in advance....