Re: [Xsltforms-support] Models and best practice for submission confirmation
Brought to you by:
alain-couthures
From: peter w. <p....@in...> - 2013-05-08 22:47:07
|
Hi William, Thanks ... that is about the simplest pattern I have seen. Would it be possible to turn the "confirm" dialog into a sort of function e.g. taking the identity of submission from a value in an instance node, perhaps? Cheers Peter > -----Original Message----- > From: wve...@vi... > Sent: Wed, 8 May 2013 21:09:56 +0000 > To: p....@in..., xsl...@li... > Subject: Re: [Xsltforms-support] Models and best practice for submission > confirmation > > You can do it using a xf:dialog with a xf:submit labeled "Yes" and a > xf:trigger labeled "No" that closes the dialog. > > Below is the code: > > > <xf:trigger> > <xf:label>Save</xf:label> > <xf:action ev:event="DOMActivate"> > <xf:show dialog="confirm"/> > </xf:action> > </xf:trigger> > > <xf:dialog id="confirm"> > <span>Are you sure?</span> > <xf:submit submission="dopost"> > <xf:label>Yes</xf:label> > </xf:submit> > <xf:trigger> > <xf:label>No</xf:label> > <xf:action ev:event="DOMActivate"> > <xf:hide dialog="confirm"/> > </xf:action> > </xf:trigger> > </xf:dialog> > > William David Velásquez > Director de I+D > Visión Tecnológica S.A.S. > Tel: (4) 444 7292 > Cel: 313 743 54 11 > wve...@vi... > ________________________________________ > De: peter winstanley [p....@in...] > Enviado: miércoles, 08 de mayo de 2013 11:53 a.m. > Para: XSLTForms support > Asunto: [Xsltforms-support] Models and best practice for submission > confirmation > > Hello List > > Are there any good examples illustrating the best way to implement a > confirmation dialogue for a submission event (asking the user if they > want to continue, and reverting to the form if they don't)? > > Many thanks > > Peter > > ____________________________________________________________ > FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on > your desktop! > Check it out at http://www.inbox.com/marineaquarium > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support ____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails |