Hello all,
I have a problem with a "select1"-dropdown that should be only visible depending on the following (it is in a repeat and right now I´m using xforms:group ref="xpathExpression"...): This dropDown shows AND / OR that I need to finish my searchEngin... -it should not be visible if the value is "lemma" (THIS IS WORKING!) - it should not be visible if it´s the first and only one (of course I don´t need an operator for one row...) (THIS IS WORKING, TOO) - it should become visible to the first one when a row is added (WORKING =) ) - it should not be visible to the last one (PROBLEM, NOT WORKING!!!!) right now I have: <xforms:group ref=".[not(@name=('lemma')) and not(position()=last())]"> But when I add a new row everything is fine but the last one...It´s visible, too... Any help? 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 |
Masen,
> right now I have: > <xforms:group ref=".[not(@name=('lemma')) and not(position()=last())]"> > But when I add a new row everything is fine but the last one...It´s > visible, too... Any help? Try the workaround with count(preceding-sibling::*) instead of position() (there are some threads regarding that topic in the archives - it's almost a FAQ) HTH florian -- 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 |
oh no...
=) Thank you Florian for all your help! Am 16.07.2008 um 17:13 schrieb Florian Schmitt: > Masen, > >> right now I have: >> <xforms:group ref=".[not(@name=('lemma')) and >> not(position()=last())]"> > >> But when I add a new row everything is fine but the last one...It´s >> visible, too... Any help? > > Try the workaround with count(preceding-sibling::*) instead of > position() (there are some threads regarding that topic in the > archives - it's almost a FAQ) > > HTH > florian > > > > > -- > 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 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 |
In reply to this post by fl.schmitt(ops-users)
Florian,
this was so easy..thx to our help: instead of <xforms:group ref=".[not(@name=('lemma')) and not(position()=last())]"> I tried <xforms:group ref=".[not(@name=('lemma')) and not(count(preceding-sibling::*) =last()-1)]"> and it worked just like I wanted... =) Am 16.07.2008 um 17:13 schrieb Florian Schmitt:
-- 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 |