Hello,
I want to replace an instance, after a page is loaded.... But I don´t want to use a submission (with a submission, I know how it works... ). Instead I want to use xforms-ready and something like xforms:insert... The insert does always put "new" data into my instance but I need to replace my data. Here is my code: <xforms:action ev:event="xforms-ready"> <xforms:insert context="instance('entries-instance')" nodeset="entry" at="1" position="before" origin="instance('entries-init')/toEdit/entry"/> </xforms:action> In this version, the data that is already in the instance is kept after the new data is inserted... How can I only put te data and delete, what was in the instance.. Something like a replace... THX -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Use xforms:delete then xforms:insert ----------------------------------------------- Ryan Puddephatt FIX Developer Fidessa LatentZero 1 Alfred Place London WC1E 7EB Office: +44 (0) 20 7462 4200 Direct: +44 (0) 20 7323 6112 Blackberry: +44 (0) 79 8539
2458 Fax: +44 (0) 20 7462 4242 Email: [hidden email] From: [hidden email]
[mailto:[hidden email]] Hello, I want to replace an instance, after a page is loaded.... But I don´t want to use a submission (with a submission, I
know how it works... ). Instead I want to use xforms-ready and something
like xforms:insert... The insert does always put "new" data into my
instance but I need to replace my data. Here is my code: <xforms:action ev:event="xforms-ready"> <xforms:insert context="instance('entries-instance')" nodeset="entry" at="1" position="before" origin="instance('entries-init')/toEdit/entry"/> </xforms:action> In this version, the data that is already in the instance is kept
after the new data is inserted... How can I only put te data and delete, what was in the instance..
Something like a replace... THX
_______________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by masjab-2
If your insert nodeset attribute points to the root element of the
node, then the entire instance will be replaced. Sth like: <xforms:insert nodeset="instance('entries-instance')" origin="instance('entries-init')/toEdit/entry"/> -Erik On Jul 11, 2008, at 3:17 AM, Masen J wrote: > Hello, > I want to replace an instance, after a page is loaded.... > > But I don´t want to use a submission (with a submission, I know how > it works... ). Instead I want to use xforms-ready and something > like xforms:insert... > > The insert does always put "new" data into my instance but I need to > replace my data. > > Here is my code: > > <xforms:action ev:event="xforms-ready"> > <xforms:insert > context="instance('entries-instance')" > nodeset="entry" > at="1" > position="before" > origin="instance('entries-init')/toEdit/entry"/> > </xforms:action> > > In this version, the data that is already in the instance is kept > after the new data is inserted... > > How can I only put te data and delete, what was in the instance.. > Something like a replace... > > > THX > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |