This document was generated from CDN thread
Created by: Ganesh K on 18-06-2010 08:11:04 AM
Hi,
We want to pass the values which is being stored in an array variable in Java to Call Studio Element Data or Session Data. CVP allows to create an array element, even from Java also I'm able to store the value using "setSessionData" into an array element, but while reteriving the value I need to specifically mention the index value ({Data.Session.a_Var_Doc[0]},{Data.Session.a_Var_Doc[1]}).
I tried reteriving value like this {Data.Session.a_Var_Doc[{Data.Session.Index}]}, it seems to be an error.
Is there a way to make it dynamic.
Subject: RE: Array Elements in Call Studio
Replied by: Tieying Xuan on 28-06-2010 03:02:46 AM
You can set/get array elements as Session Data in Java source. BUT you can't use the sames variable in Call Studio. In Call Studio, all the session data will be regarded as String variable.
In your case, {Data.Session.a_Var_Doc} will be passed to String as a Java internal Object reference. And {Data.Session.a_Var_Doc[0]} won't be recognized.