The data base query brings 3 rows:
getoptions:NAME
http://10.96.0.5/hanaya.wav getoptions:ID 2
getoptions:NAME
http://10.96.0.5/arnona.wav getoptions:ID 3
getoptions:NAME
http://10.96.0.5/maym.wav getoptions:ID 4
When I tried to use vname or "vname" I am gettting an exception -the variable http.... does not exist or variable vname does not exist.
If I use
add(1, new PromptElement(PromptElement.VARIABLE_TEXT, "getoptions:NAME" ,f)); I am getting the following
Personal Voice Browser Version 5.1 Copyright (c) 2004-2010, Avaya
Queuing prompt: File(
http://10.96.0.5/hanaya.wav)
Queuing prompt: File(
http://10.96.0.5/hanaya.wav)
Queuing prompt: File(
http://10.96.0.5/hanaya.wav)
Playing text "welcome. You have reached the dynamic flow application", Language (en-us), Gender (Female)
Playing text "please select one of the following", Language (en-us), Gender (Female)
Playing file(
http://10.96.0.5/hanaya.wav)
Playing text "press2", Language (en-us), Gender (Female)
Playing file(
http://10.96.0.5/hanaya.wav)
Playing text "press3", Language (en-us), Gender (Female)
Playing file(
http://10.96.0.5/hanaya.wav)
Playing text "press4", Language (en-us), Gender (Female)
- instead of looping I am just getting the first row - for the NAME field.
while the ID field - is looping oK through the results.
Clearly, I don't know how to pass the NAME ( the url of the wav file to be spoken) one at a time through each loop followed by the ID field.