SubDialog variables and properties
Posted: Wed Apr 11, 2007 12:22 pm
Hi
I am using some sub-dialogs to allow me to run the same code multiple times.
I noticed that document scope variables get reset when transitioning to a sub-dialog; these have to be passed as parameters to the sub-dialog. This I have done and they now contain the values I expect.
However, I have now noticed that Plum properties (such as voicename, timeout, interdigittimeout, etc.) don't seem to work properly in subdialogs. I have a global application page which runs at the start of each vxml page, this also sets some Plum properties. For some reason, they seem to get ignored or lose their values.
E.g.
Given this fragment of a subdialog:
<form id="select_patient">
<var name="index"/>
<var name="arrPatients"/>
<var name="answer"/>
<block>
<prompt bargein="false">
<audio src="patient_lastname.wav">
The patient's name is:
</audio>
<audio>
<say-as type="acronym">
<value expr="arrPatients[index]"/>
</say-as>
</audio>
</prompt>
</block>
etc.
The property 'voicename' is set to be 'mike'. However in this subdialog, the first audio sample plays in the female voice, the second plays as 'mike'. Timeout properties do not work.
I was wondering if anyone had any ideas on what is happening here, and what we can do to solve it.
Regards
Justin.
I am using some sub-dialogs to allow me to run the same code multiple times.
I noticed that document scope variables get reset when transitioning to a sub-dialog; these have to be passed as parameters to the sub-dialog. This I have done and they now contain the values I expect.
However, I have now noticed that Plum properties (such as voicename, timeout, interdigittimeout, etc.) don't seem to work properly in subdialogs. I have a global application page which runs at the start of each vxml page, this also sets some Plum properties. For some reason, they seem to get ignored or lose their values.
E.g.
Given this fragment of a subdialog:
<form id="select_patient">
<var name="index"/>
<var name="arrPatients"/>
<var name="answer"/>
<block>
<prompt bargein="false">
<audio src="patient_lastname.wav">
The patient's name is:
</audio>
<audio>
<say-as type="acronym">
<value expr="arrPatients[index]"/>
</say-as>
</audio>
</prompt>
</block>
etc.
The property 'voicename' is set to be 'mike'. However in this subdialog, the first audio sample plays in the female voice, the second plays as 'mike'. Timeout properties do not work.
I was wondering if anyone had any ideas on what is happening here, and what we can do to solve it.
Regards
Justin.