- From: Laura Werner <laura@bevocal.com>
- Date: Wed, 2 Jan 2002 09:56:22 -0800
- To: "'Markku.Savela@vtt.fi'" <Markku.Savela@vtt.fi>, www-voice@w3.org
> In my first read, I followed 2.1.2.1, which says field items are > <field>, <record>, <transfer>, <object> and <subdialog>, and got > > accountinfo > adjustment_amount > > and resulting submit parameters would be > > accountinfo.acctnum > accountinfo.acctphone > adjustment_amount You've got it exactly right. The <var>'s don't get submitted automatically because they're not "field items" according to 2.1.2.1. Laura Werner BeVocal, Inc. Try our free VoiceXML interpreter at cafe.bevocal.com! > -----Original Message----- > From: Markku Savela [mailto:msa@msa.tte.vtt.fi] > Sent: Friday, December 28, 2001 8:16 AM > To: www-voice@w3.org > Subject: More questions, SUBMIT without namelist? > > > > VoiceXML 2.0, in section 1.5.3 there is a subdialog calling example > app.vxml (attached at end). The <submit> in it, does not specify a > namelist, and in 5.3.8 about this situation the text reads: > > The list of variables to submit. By default, all the named field > item variables are submitted. ... > > Which of the following are actually "named field item variables"? > > account_number > home_phone > accountinfo > adjustment_amount > > In my first read, I followed 2.1.2.1, which says field items are > <field>, <record>, <transfer>, <object> and <subdialog>, and got > > accountinfo > adjustment_amount > > and resulting submit parameters would be > > accountinfo.acctnum > accountinfo.acctphone > adjustment_amount > > Is this correct? (var's account_number and home_phone are not used?). > > ------------------------ > <?xml version="1.0"?> > <vxml version="2.0"> > <form id="billing_adjustment"> > <var name="account_number"/> > <var name="home_phone"/> > <subdialog name="accountinfo" src="acct_info.vxml#basic"> > <filled> > <!-- Note the variable defined by "accountinfo" is > returned as an ECMAScript object and it contains two > properties defined by the variables specified in the > "return" element of the subdialog. --> > <assign name="account_number" expr="accountinfo.acctnum"/> > <assign name="home_phone" expr="accountinfo.acctphone"/> > </filled> > </subdialog> > > <field name="adjustment_amount" type="currency"> > <prompt> > What is the value of your account adjustment? > </prompt> > <filled> > <submit next="/cgi-bin/updateaccount"/> > </filled> > </field> > </form> > </vxml> > >
Received on Wednesday, 2 January 2002 12:57:04 UTC