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

RE: How to forward instance data between forms ?

From: Mark Birbeck <Mark.Birbeck@x-port.net>
Date: Wed, 29 Oct 2003 09:47:50 -0000
Message-ID: <E3ED00A7C285EE408679DE2A26D1C7810148F881@S007.x-port.net>
To: 'Mark Seaborne' <MSeaborne@origoservices.com>, "Paolo C." <paoloxforms@yahoo.fr>
Cc: www-forms@w3.org

Mark wrote:
> This behaviour is supported by XForms using
> <xfm:load resource="the other form you want to load" show="replace"/>

That wouldn't achieve the desired effect since you will lose the instance
data from the first form.

Paolo wrote:
> My aim is to forward some instance data from a first
> XForms page (form1.xml) to a second XForms page
> (form2.xml).
> [...]
> Is this kind of approach conformant to the XForms
> recommandation ?

It depends what you mean. If you mean could you refer to some 'global'
instances across forms, then no. But there is nothing to stop you saving the
first lot of instance data and then picking it up again in the second form.
This could be done to a server (which has the advantage that the user could
continue on the second form on a different device, or at a later date) or
saved locally, using "file:".

One of our samples illustrates many of the ideas that you would need to do


Note in particular the use of xforms-model-destruct to save the data on

    <xforms:action ev:event="xforms-model-destruct">
      <xforms:send submission="siOrder_SaveLocal" />

> Does someone know a (possibly open source) product which allows this ?

X-Smiles supports "file:" and is open source. formsPlayer also supports it,
is not open source, but is free.



Mark Birbeck
x-port.net Ltd.
4 Pear Tree Court

Download our XForms processor for IE
from http://www.formsPlayer.com/

E: Mark.Birbeck@x-port.net
W: www.x-port.net
T: +44 (20) 7689 9232
Received on Wednesday, 29 October 2003 04:50:44 UTC

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