Hi, I
have a repeat table whose ref is instance(‘main’)/Risk and another
repeat table inside the 1st one whose ref is RiskItem. I have a
textbox named rating inside Riskitem. I
have given a bind for rating as: <xforms:bind
nodeset=”//rating” constraint=”.!=’0’ and .!=’’”
/> Suppose
I have 3 Risks and each Risk table has got 2 Riskitems each. I need to do the
validation(xforms:bind) for rating such that the last(in this case, 2nd)riskitem
in each Risk table should not be validated. Ie, the bind should not be applied
to the last Riskitem in each Risk table. How
can I write the bind for this? This is urgent. Please help Thanks
in advance Jency -- 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 |
Do you have a little sample so that we could test it in the sandbox?
|
Administrator
|
In reply to this post by Jency Thomas
On Thu, Feb 28, 2008 at 5:02 AM, Jency Thomas
<[hidden email]> wrote: > I have a repeat table whose ref is instance('main')/Risk and another repeat > table inside the 1st one whose ref is RiskItem. I have a textbox named > rating inside Riskitem. Something like this should do the trick: instance('main')/Risk/Riskitem[position() != last()] Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.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 |
Thanks Alex. It worked... -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Friday, February 29, 2008 5:13 AM To: [hidden email] Subject: SUSPECT: [ops-users] Re: xforms:bind in repeat table On Thu, Feb 28, 2008 at 5:02 AM, Jency Thomas <[hidden email]> wrote: > I have a repeat table whose ref is instance('main')/Risk and another repeat > table inside the 1st one whose ref is RiskItem. I have a textbox named > rating inside Riskitem. Something like this should do the trick: instance('main')/Risk/Riskitem[position() != last()] Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.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 |