Author Message
IvanFontalvo
Joined: Mar 22, 2012
Messages: 61
Offline
Hi Guys, is there a way to create IprojectVariables in execution time?

the case is this, i have to develop a dymamic prompt via java, and i have to add multiples audioVariables.

this is my code :
I have this in a cycle , but if i have just a single var always the annouce going to promt the same audio rigth ?


add(1, new com.avaya.sce.runtime.PhraseVariableElement("Variable", com.avaya.sce.runtime.PhraseVariableElement.Type.AUDIO_URL,false));


if wasn't "audio url " i can use phrases from phaseset, but i need to add new audios with not deploy again the app.


Thanks in advance.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
I am not sure how dynamic variable creation will do any good. What you need seems to be dynamic phrase loading. I believe there are already many existing posts in the forum about that. You can do a search for "dynamic phrase" or "dynamic prompt" to see what you can find.
Go to:   
Mobile view