Is it possible to
perform 2 actions in one event?
If i try the code
below the insert and the delete work separately but not together like
this:
<xforms:trigger
appearance="minimal">
<xforms:label><img src="../apps/valueeditor/images/down.gif"/></xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:insert nodeset="../paramgroup" at="index('groups-repeat')+1" position="after" origin="../paramgroup[index('groups-repeat')]"/> <xforms:delete context=".." nodeset="paramgroup" at="index('groups-repeat')"/> </xforms:action> </xforms:trigger> Teun van
Eijsden
-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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
|
Teun,
Yes that's exactly how you should do it. Note that the index for 'group-repeat' can change between the insert and the delete. Maybe that's what's causing problems? -Erik Teun van Eijsden wrote: > Is it possible to perform 2 actions in one event? > If i try the code below the insert and the delete work separately but > not together like this: > > > <xforms:trigger appearance="minimal"> > <xforms:label><img > src="../apps/valueeditor/images/down.gif"/></xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:insert nodeset="../paramgroup" > at="index('groups-repeat')+1" position="after" > origin="../paramgroup[index('groups-repeat')]"/> > <xforms:delete context=".." nodeset="paramgroup" > at="index('groups-repeat')"/> > </xforms:action> > </xforms:trigger> > Teun van Eijsden > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- The information contained in this communication and any attachments > is confidential and may be privileged, and is for the sole use of the > intended recipient(s). Any unauthorized review, use, disclosure or > distribution is prohibited. Unless explicitly stated otherwise in the > body of this communication or the attachment thereto (if any), the > information is provided on an AS-IS basis without any express or implied > warranties or liabilities. To the extent you are relying on this > information, you are doing so at your own risk. If you are not the > intended recipient, please notify the sender immediately by replying to > this message and destroy all copies of this message and any attachments. > ASML is neither liable for the proper and complete transmission of the > information contained in this communication, nor for any delay in its > receipt. > -- 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 |
You're right. I have to delete at index('groups-repeat')-2
Thanks, Teun -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Wednesday, October 10, 2007 18:36 To: [hidden email] Subject: Re: [ops-users] 2 actions on one DOMActivate Teun, Yes that's exactly how you should do it. Note that the index for 'group-repeat' can change between the insert and the delete. Maybe that's what's causing problems? -Erik Teun van Eijsden wrote: > Is it possible to perform 2 actions in one event? > If i try the code below the insert and the delete work separately but > not together like this: > > > <xforms:trigger appearance="minimal"> > <xforms:label><img > src="../apps/valueeditor/images/down.gif"/></xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:insert nodeset="../paramgroup" > at="index('groups-repeat')+1" position="after" > origin="../paramgroup[index('groups-repeat')]"/> > <xforms:delete context=".." nodeset="paramgroup" > at="index('groups-repeat')"/> > </xforms:action> > </xforms:trigger> > Teun van Eijsden > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- The information contained in this communication and any attachments > is confidential and may be privileged, and is for the sole use of the > intended recipient(s). Any unauthorized review, use, disclosure or > distribution is prohibited. Unless explicitly stated otherwise in the > body of this communication or the attachment thereto (if any), the > information is provided on an AS-IS basis without any express or > implied warranties or liabilities. To the extent you are relying on > this information, you are doing so at your own risk. If you are not > the intended recipient, please notify the sender immediately by > replying to this message and destroy all copies of this message and > ASML is neither liable for the proper and complete transmission of the > information contained in this communication, nor for any delay in its > receipt. > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 |