W3C home > Mailing lists > Public > www-forms@w3.org > February 2005

Re: How to use insert and delete actions

From: Alexander Anokhin <ava@vaz.ru>
Date: Tue, 08 Feb 2005 15:51:45 +0400
Message-ID: <4208A7D1.3040806@vaz.ru>
CC: www-forms@w3.org
mb this helps (for delete):

<xforms:trigger>
<xforms:label>Delete current meeting</xforms:label>
<xforms:delete nodeset="instance('data')/meeting[position() = 
index('meetings_index')]" at="1"/>
</xforms:trigger>


Catherine Poinsignon wrote:
> Hi all,
> I am trying to use the insert and delete actions to insert a new record 
> in my instance data or delete an existing record. Do do that, I hace the 
> following instance :
>  
>  
>             <xforms:trigger>
>                 <xforms:label>New meeting</xforms:label>
>     <xforms:insert at="index('meetings_index')"
>                     nodeset="meeting" position="after"/>
>     <xforms:setvalue ref="meeting[index('meetings_index')]/title">New 
> Meeting</xforms:setvalue>
>             </xforms:trigger>
>  
> But it does not work : neither the delete, neither the new !!!
> Could you please help me ?
> Thanks in advance...

-- 
Alexander Anokhin
AVTOVAZ JSC
email:ava@vaz.ru
icq:123275798

Received on Tuesday, 8 February 2005 11:53:44 GMT

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