Janine Graves | You're right, Studio won't let you use a variable inside the name of a variable, but you can do it within the Java.
So, you should probably write a Java element (or standard action) that stores the name of the audio to play (stores the contents of {Data.Element.GetFundPrice_01.Fund#}) into a new element or session data variable (here, I've called it 'SpeakThis').
Then in the Studio app, speak out the new variable {Data.Element.ActionElementName.SpeakThis}
Java code, where 'data' is the Session API passed to the doAction() method:
String ctr=data.GetElementData("Counter_01","count"); String audioToSpeak = data.GetElementData("GetFundPrice_01", "Fund"+ctr); data.setElementData("SpeakThis",audioToSpeak); //Or you could store this into Session variable and select it in Studio as {Data.Session.SpeakThis} //data.setSessionData("SpeakThis",audioToSpeak);
Regards, Janine www.TrainingTheExperts.com |
| Please sign in to flag this as inappropriate. |