Page 1 of 1

error.semantic When calling a Subdialog

Posted: Thu Sep 08, 2011 11:21 am
by rquant
I am having issues with my vxml application. I am trying to pass subdialog parameters but receive an error event:

Code: Select all

received event: error.semantic: 
received event: error.semantic.ecmascript:
This is my form where I call the <subdialog>

Code: Select all

  

     <var name="sessionId" />
     <var name="ani" />
     <var name="dnis" />
     <var name="applicationCode" />
<form id="StartCall">
        <block>
            <assign name="CurrentPage" expr="VxmlPage" />
            <assign name="CurrentForm" expr="'StartCall'" />
         </block>
        <subdialog name="StartCallSub" src="../Shared/StartCall_Main.vxml">
            <param name="sessionId" expr="SessionId" />
            <param name="ani" expr="Ani" />
            <param name="dnis" expr="Dnis" />
            <param name="applicationCode" expr="ApplicationCode" />
        <filled>
                <assign name="Company" expr="StartCallSub.Company" />
                <goto next="#Welcome" />
            </filled>
        </subdialog>
    </form>
this is my subdialog being called:

Code: Select all

<form id="Start">
        <block>
            <assign name="CurrentPage" expr="VxmlPage" />
            <assign name="CurrentForm" expr="'Start'" />

            <!-- Declare variables that will be passed in from the calling point as parameters -->
            <var name="sessionId" />
            <var name="ani" />
            <var name="dnis" />
            <var name="applicationCode" />

            <log expr="'SessionId: ' + sessionId" />
            <log expr="'ANI: ' + ani" />
            <log expr="'DNIS: ' + dnis" />
            <log expr="'Application Code: ' + applicationCode" />

             <log expr="'+++++++++++++++++++++++++' + VxmlPage" />
            <goto next="#StartCall" />
      </block>
    </form>
Any suggestions...

Re: error.semantic When calling a Subdialog

Posted: Thu Sep 08, 2011 2:30 pm
by support
Hi,

You will need to declare the variable being submitted via the param tag within the form, not the block.

Code: Select all

<form id="Start">
	  <!-- Declare variables that will be passed in from the calling point as parameters -->
	  <var name="sessionId" />
	  <var name="ani" />
	  <var name="dnis" />
	  <var name="applicationCode" />
	<block>
This should fix the error.semantic you were experiencing.

Regards,
Plum Support