W3C home > Mailing lists > Public > www-forms@w3.org > October 2006

XForms - Submission on multiple instances?

From: Lee Standen <nom@standen.id.au>
Date: Tue, 31 Oct 2006 16:04:23 +0800
Message-ID: <45470387.40601@standen.id.au>
To: www-forms@w3.org

Hi Guys,

I'm hoping someone has come across this, and knows the "correct" way to 
implement it.

I'm trying to setup an submission so that a successful submission 
triggers another submission to occur, and I've not had too much luck so 
far.  These are a couple of the things I've tried:

This is a simplified version, but basically instance2 contains a list of 
values which are (potentially) changed when instance1 is submitted, so 
it needs to be refreshed before allowing the user to submit more forms.


<xf:model id="mdl">
<xf:instance id="instance1" src="somepage.cgi" />
<xf:instance id="instance2" src="someotherpage.cgi" />

<xf:submission id="submission1" method="post" action="somepage.cgi" 
ref="instance('instance1')" replace="instance" instance="instance1">
   <xf:send ev:event="xforms-submit-done" submission="submission2" />

<xf:submission id="submission2" method="post" action="someotherpage.cgi" 
ref="instance('instance2')" replace="instance" instance="instance2" />


<xf:submit submission="submission1">
   <xf:label>Save & Reload List</xf:label>
Received on Tuesday, 31 October 2006 13:31:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:19 UTC