|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
confusing xPath expression in repeatHello 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 ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: Re: confusing xPath expression in repeatoh 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 ops-users@... > mailing list. > To unsubscribe: mailto:ops-users-unsubscribe@... > For general help: mailto:sympa@...?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: confusing xPath expression in repeatMasen,
> 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 ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: Re: confusing xPath expression in repeatFlorian,
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 ops-users@... mailing list. To unsubscribe: mailto:ops-users-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
| Free Forum Powered by Nabble | Forum Help |