Re: [Xsltforms-support] Insert a new row in a repeat table
Brought to you by:
alain-couthures
From: Raja <m.r...@ni...> - 2010-05-11 13:03:41
|
Hi Dhiradj Badloe !!!! Just u add the setvalue action after the insert action in that u set empty value for the added row... that's it... like <xf:setvalue ref="element name [last()]" value=" '' "/> ----- Original Message ----- From: Dan McCreary <dan...@gm...> Date: Tuesday, May 11, 2010 6:06 pm SuSendbject: Re: [Xsltforms-support] Insert a new row in a repeat table To: Dhiradj Badloe <dh...@gm...> Cc: xsl...@li... > I would use the "origin" attribute in the insert. > > http://en.wikibooks.org/wiki/XForms/Deep_Copy_with_Insert_Origin > > On Tue, May 11, 2010 at 2:46 AM, Dhiradj Badloe <dh...@gm...> wrote: > Hi all, > > I'm trying to insert a new row in a repeated table with the following code: > > <xf:trigger> > <xf:label>Add row</xf:label> > <xf:action ev:event="DOMActivate"> > <xf:insert at="index('repeat-opgaven')" position="after" > nodeset="instance('inlinewerken')/data/tabbladOpgaven/sve/oge/detail[1]/ojt"/> > </xf:action> > </xf:trigger> > > This results in a copy of an existing row, which is added to the end of the table. > How can I add a new, empty row to the table? Thanks! > > Regards, > Dhiradj Badloe > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > -- > Dan McCreary > Semantic Solutions Architect > office: (952) 931-9198 > cell: (612) 986-1442 > ----------------------------------------------------------------- > ------------- > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support Rajamani Marimuthu Junior Research Fellow-JRF NIC -Open Technology Centre Rajaji Bhavan Besant Nagar, Chennai - 90 Cell : 9791125383 |