cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
435
Views
0
Helpful
0
Comments
cdnadmin
Community Member
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.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links