Thank you very much.
This is the idea I already tried. The problem is, the variable is set in the root document. But it is not passed over to the leaf documents.
And I saw some other post regarding this. I tried apply that solution too like instead just using the variable name, I use
applicaiton.[variableName]. I tried just use the variable name. Neither of them worked.
I have code snippet below. Please take a look at that whether I miss something.
code:
This code didn't even set the variable value.
//ROOT Document
<?xml version="1.0"?>
<vxml version="2.0" xmlns="
http://www.w3.org/2001/vxml">
<var name="language" expr="''"/>
<form id="choose_lang">
<field name="select_lang">
<grammar>1{English}|2{Spanish}</grammar>
<prompt>
<audio expr="'recordings/English/'+groupid+'/prompt_greeting.wav'" >
</audio>
<audio src="recordings/English/global/pause.wav"></audio>
</prompt>
<prompt>For English, Press1. For Spanish, Press2</prompt>
<filled>
<assign name="application.language" expr="select_lang" />
The Language is now set to <value expr="language"/>.
<goto next="CustomerEntry.do" maxage="0" maxstale="0" />
</filled>
</field>
</form>
</vxml>
LEAF DOCUMENT:
<?xml version="1.0"?>
<vxml version="2.0" application="Welcome.do" xmlns="
http://www.w3.org/2001/vxml">
<form id="customerentry">
<field name="field_value" >
<grammar src="builtin:dtmf/digits"/>
<grammar src="builtin:grammar/digits"/>
<prompt >
<audio expr="'recordings/'+application.language+'/'+groupid+'prompt_customerid.wav'" ></audio>
</prompt>
</field>
</form>
</vxml>
Anothercode:
This one set the variable but didn't passed over to the leaf doucment
ROOR DOCUMENT:
<?xml version="1.0"?>
<vxml version="2.0" xmlns="
http://www.w3.org/2001/vxml">
<form id="choose_lang">
<var name="language" expr="''"/>
<field name="select_lang">
<grammar>1{English}|2{Spanish}</grammar>
<prompt>
<audio expr="'recordings/English/'+groupid+'/prompt_greeting.wav'" >
</audio>
<audio src="recordings/English/global/pause.wav"></audio>
</prompt>
<prompt>For English, Press1. For Spanish, Press2</prompt>
<filled>
<assign name="language" expr="select_lang" />
The Language is now set to <value expr="language"/>.
<goto next="CustomerEntry.do" maxage="0" maxstale="0" />
</filled>
</field>
</form>
</vxml>
LEAF DOCUMENT:
I tried both ways with application.language and just language. No luck.
Do you guys have any idea about what I am missing? Or is this a bug in the platform?
Thank you