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

RE: How to forward instance data between forms ?

From: Paolo C. <paoloxforms@yahoo.fr>
Date: Wed, 29 Oct 2003 11:27:21 +0100 (CET)
Message-ID: <20031029102721.90713.qmail@web25201.mail.ukl.yahoo.com>
To: www-forms@w3.org

Thank you Mark.
Can I ask you precisions on how you merge the instance
data from form1 and that from form2 ?

 --- Mark Seaborne <MSeaborne@origoservices.com> a
écrit : > 
> Paulo,
> 
> Beg pardon, I forgot that you need to submit the
> instance first!
> 
> The scenario I have developed for is form1 is used
> to populate part of an instance. Once this is done I
> have used 
> 
> <xfm:send model="x" submission="submit1"/>
> <xforms:load resource="next_form.html"
> show="repleace"/>
> 
> within a convenient event, to move the user to the
> next form, which loads the same instance, but
> exposes a different part of it to the user.
> 
> I have also written schemas that break the
> validation into discrete chunks, so that only the
> part of the instance currently being worked on gets
> validated
> 
> All the best
> 
> Mark
> 
> PS I have used this technique for both online and
> offline forms with FormsPlayer and XSmiles.
> 
> The information in this email is sent in confidence
> for the addressee only and may be legally
> privileged.  Unauthorised recipients must preserve
> this confidentiality and should please advise the
> sender immediately of the error in transmission.  If
> you are not the intended recipient, any disclosure,
> copying, distribution or any action taken in
> reliance on its content is prohibited and may be
> unlawful.
> 
> Origo Services Ltd accepts no responsibility for any
> loss or damage resulting directly or indirectly from
> the use of this email or the contents. 
> 
> > -----Original Message-----
> > From: Mark Birbeck
> [mailto:Mark.Birbeck@x-port.net]
> > Sent: 29 October 2003 09:48
> > To: Mark Seaborne; Paolo C.
> > Cc: www-forms@w3.org
> > Subject: RE: How to forward instance data between
> forms ?
> > 
> > 
> > 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
> > this:
> > 
> >
>
<http://www.formsplayer.com/community/samples/index.html#Off-l
> ine+Forms>
> 
> Note in particular the use of xforms-model-destruct
> to save the data on
> close:
> 
>     <xforms:action ev:event="xforms-model-destruct">
>       <xforms:send submission="siOrder_SaveLocal" />
>     </xforms:action>
> 
> > 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.
> 
> Regards,
> 
> Mark
> 
> 
> Mark Birbeck
> CEO and CTO
> x-port.net Ltd.
> 4 Pear Tree Court
> London
> EC1R 0DS
> 
> 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
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
Received on Wednesday, 29 October 2003 05:27:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:56 GMT