repeat and index xpath function

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

repeat and index xpath function

Marco Lebel
Hi all,

Would you belive it but I am still having difficulty with repeat.

What I am trying to achieve is a screen where
1) The first part is made up of filter(s) that a user can select. No problem
2) The second part of the screen display a summary of matching nodeset.
Again no problem the nodeset is dictated by the filter field found in part 1
of the screen.
3) The third part of the screen display details of the selected entry from
the summary. This is where things get messy.

All is fine if I do not apply any filter. If  I apply a filter then the
index returns the index value of the repeat which does not match the
unfiltered nodeset of my instance!!!

So for example if my intance has 5 repeating nodes the index function will
allow me to access my instance node as long has the repeat does not skip a
node otherwise... well I am refering the wrong node of my instance.

The only solution I can think of is to set an 'xform:action' on Domfocusin
set a temporary field and use that field in my detail to figure out which
node to access.  I looked at using repeat-current but my detail screen is
not within the repeat so no luck there.

As always help is appreciated.

Marco

_________________________________________________________________
Say hello to the next generation of Search. Live Search – try it now.
http://www.live.com/?mkt=en-ca




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeat and index xpath function

Erik Bruchez
Administrator
Marco,

> Would you belive it but I am still having difficulty with repeat.
>
> What I am trying to achieve is a screen where
> 1) The first part is made up of filter(s) that a user can select. No
> problem
> 2) The second part of the screen display a summary of matching nodeset.
> Again no problem the nodeset is dictated by the filter field found in
> part 1 of the screen.
> 3) The third part of the screen display details of the selected entry
> from the summary. This is where things get messy.
>
> All is fine if I do not apply any filter. If  I apply a filter then the
> index returns the index value of the repeat which does not match the
> unfiltered nodeset of my instance!!!
>
> So for example if my intance has 5 repeating nodes the index function
> will allow me to access my instance node as long has the repeat does not
> skip a node otherwise... well I am refering the wrong node of my instance.
>
> The only solution I can think of is to set an 'xform:action' on
> Domfocusin set a temporary field and use that field in my detail to
> figure out which node to access.  I looked at using repeat-current but
> my detail screen is not within the repeat so no luck there.
>
> As always help is appreciated.
Let the code speak! The best thing to do would  be to send an XForms
document that runs in the sandbox and illustrates your issue.

-Erik

--
Orbeon Forms - XForms Everywhere
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeat and index xpath function

Marco Lebel
Erick,

Could not aggree more with you let the code speak that is... but I did come
up with a work around that fixes my issue and then some...

As always thanks for your help,

Me,

p.s. I promise that in the future the code will do the talking ;-)


>Marco,
>
>>Would you belive it but I am still having difficulty with repeat.
>>
>>What I am trying to achieve is a screen where
>>1) The first part is made up of filter(s) that a user can select. No
>>problem
>>2) The second part of the screen display a summary of matching nodeset.
>>Again no problem the nodeset is dictated by the filter field found in part
>>1 of the screen.
>>3) The third part of the screen display details of the selected entry from
>>the summary. This is where things get messy.
>>
>>All is fine if I do not apply any filter. If  I apply a filter then the
>>index returns the index value of the repeat which does not match the
>>unfiltered nodeset of my instance!!!
>>
>>So for example if my intance has 5 repeating nodes the index function will
>>allow me to access my instance node as long has the repeat does not skip a
>>node otherwise... well I am refering the wrong node of my instance.
>>
>>The only solution I can think of is to set an 'xform:action' on Domfocusin
>>set a temporary field and use that field in my detail to figure out which
>>node to access.  I looked at using repeat-current but my detail screen is
>>not within the repeat so no luck there.
>>
>>As always help is appreciated.
>
>Let the code speak! The best thing to do would  be to send an XForms
>document that runs in the sandbox and illustrates your issue.
>
>-Erik
>
>--
>Orbeon Forms - XForms Everywhere
>http://www.orbeon.com/blog/
>

>
>--
>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
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

_________________________________________________________________
Say hello to the next generation of Search. Live Search – try it now.
http://www.live.com/?mkt=en-ca




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeat and index xpath function

ToddG
I'd like to see the workaround you found, if your willing to share, please?
 
Todd Gochenour

 
On 11/24/06, Marco Lebel <[hidden email]> wrote:
Erick,

Could not aggree more with you let the code speak that is... but I did come
up with a work around that fixes my issue and then some...

As always thanks for your help,

Me,

p.s. I promise that in the future the code will do the talking ;-)


>Marco,
>
>>Would you belive it but I am still having difficulty with repeat.
>>
>>What I am trying to achieve is a screen where
>>1) The first part is made up of filter(s) that a user can select. No
>>problem
>>2) The second part of the screen display a summary of matching nodeset.
>>Again no problem the nodeset is dictated by the filter field found in part
>>1 of the screen.
>>3) The third part of the screen display details of the selected entry from
>>the summary. This is where things get messy.
>>
>>All is fine if I do not apply any filter. If  I apply a filter then the
>>index returns the index value of the repeat which does not match the
>>unfiltered nodeset of my instance!!!
>>
>>So for example if my intance has 5 repeating nodes the index function will
>>allow me to access my instance node as long has the repeat does not skip a
>>node otherwise... well I am refering the wrong node of my instance.
>>
>>The only solution I can think of is to set an 'xform:action' on Domfocusin
>>set a temporary field and use that field in my detail to figure out which
>>node to access.  I looked at using repeat-current but my detail screen is
>>not within the repeat so no luck there.
>>
>>As always help is appreciated.
>
>Let the code speak! The best thing to do would  be to send an XForms
>document that runs in the sandbox and illustrates your issue.
>
>-Erik
>
>--
>Orbeon Forms - XForms Everywhere
>http://www.orbeon.com/blog/
>


>
>--
>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
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

_________________________________________________________________
Say hello to the next generation of Search. Live Search – try it now.
http://www.live.com/?mkt=en-ca





--
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
ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeat and index xpath function

Marco Lebel
In reply to this post by Marco Lebel
Todd, Erick, all

Well well well my workaround did not work and I am getting deeper and deeper
so back to basics.

You will find attach an example of what I am trying to acheive it runs in
the sandbox!!!

While running the attach file notice that the detail screens will exhibit
what I was trying to explain i.e. that the repeat index does not translate
to the index in my nodeset once that nodeset is filtered by the repeat.

If someone would be kind enough to point me in a simple and viable solution.

Again I beleive that the problem stems from the fact that the index function
retruns the index value of what has been display by the repeat and not the
index value of the nodeset in respect to the instance data!!!  So I am
searching for a function that will acheive that!!!!


As always thanks for the help


>From: "Todd Gochenour" <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: [ops-users] repeat and index xpath function
>Date: Sat, 25 Nov 2006 20:11:44 -0700
>
>I'd like to see the workaround you found, if your willing to share, please?
>
>Todd Gochenour
>
>
>On 11/24/06, Marco Lebel <[hidden email]> wrote:
>>
>>Erick,
>>
>>Could not aggree more with you let the code speak that is... but I did
>>come
>>up with a work around that fixes my issue and then some...
>>
>>As always thanks for your help,
>>
>>Me,
>>
>>p.s. I promise that in the future the code will do the talking ;-)
>>
>>
>> >Marco,
>> >
>> >>Would you belive it but I am still having difficulty with repeat.
>> >>
>> >>What I am trying to achieve is a screen where
>> >>1) The first part is made up of filter(s) that a user can select. No
>> >>problem
>> >>2) The second part of the screen display a summary of matching nodeset.
>> >>Again no problem the nodeset is dictated by the filter field found in
>>part
>> >>1 of the screen.
>> >>3) The third part of the screen display details of the selected entry
>>from
>> >>the summary. This is where things get messy.
>> >>
>> >>All is fine if I do not apply any filter. If  I apply a filter then the
>> >>index returns the index value of the repeat which does not match the
>> >>unfiltered nodeset of my instance!!!
>> >>
>> >>So for example if my intance has 5 repeating nodes the index function
>>will
>> >>allow me to access my instance node as long has the repeat does not
>>skip
>>a
>> >>node otherwise... well I am refering the wrong node of my instance.
>> >>
>> >>The only solution I can think of is to set an 'xform:action' on
>>Domfocusin
>> >>set a temporary field and use that field in my detail to figure out
>>which
>> >>node to access.  I looked at using repeat-current but my detail screen
>>is
>> >>not within the repeat so no luck there.
>> >>
>> >>As always help is appreciated.
>> >
>> >Let the code speak! The best thing to do would  be to send an XForms
>> >document that runs in the sandbox and illustrates your issue.
>> >
>> >-Erik
>> >
>> >--
>> >Orbeon Forms - XForms Everywhere
>> >http://www.orbeon.com/blog/
>> >
>>
>>
>> >
>> >--
>> >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
>> >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>_________________________________________________________________
>>Say hello to the next generation of Search. Live Search – try it now.
>>http://www.live.com/?mkt=en-ca
>>
>>
>>
>>
>>
>>--
>>You receive this message as a subscriber of the
>>[hidden email] list.
>>To unsubscribe: mailto:[hidden email]
>>For general help: mailto:[hidden email]?subject=help
>>ObjectWeb mailing lists service home page: http://www.objectweb.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
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

_________________________________________________________________
Fixing up the home? Live Search can help
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

repeat-details.xhtml (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: repeat and index xpath function

Ryan Puddephatt
Marco,
        Try item[position() = index('discriminantList-repeat')]

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Marco Lebel [mailto:[hidden email]]
>Sent: 27 November 2006 16:06
>To: [hidden email]
>Subject: Re: [ops-users] repeat and index xpath function
>
>Todd, Erick, all
>
>Well well well my workaround did not work and I am getting
>deeper and deeper so back to basics.
>
>You will find attach an example of what I am trying to acheive
>it runs in the sandbox!!!
>
>While running the attach file notice that the detail screens
>will exhibit what I was trying to explain i.e. that the repeat
>index does not translate to the index in my nodeset once that
>nodeset is filtered by the repeat.
>
>If someone would be kind enough to point me in a simple and
>viable solution.
>
>Again I beleive that the problem stems from the fact that the
>index function retruns the index value of what has been
>display by the repeat and not the index value of the nodeset
>in respect to the instance data!!!  So I am searching for a
>function that will acheive that!!!!
>
>
>As always thanks for the help
>
>
>>From: "Todd Gochenour" <[hidden email]>
>>Reply-To: [hidden email]
>>To: [hidden email]
>>Subject: Re: [ops-users] repeat and index xpath function
>>Date: Sat, 25 Nov 2006 20:11:44 -0700
>>
>>I'd like to see the workaround you found, if your willing to
>share, please?
>>
>>Todd Gochenour
>>
>>
>>On 11/24/06, Marco Lebel <[hidden email]> wrote:
>>>
>>>Erick,
>>>
>>>Could not aggree more with you let the code speak that is...
>but I did
>>>come up with a work around that fixes my issue and then some...
>>>
>>>As always thanks for your help,
>>>
>>>Me,
>>>
>>>p.s. I promise that in the future the code will do the talking ;-)
>>>
>>>
>>> >Marco,
>>> >
>>> >>Would you belive it but I am still having difficulty with repeat.
>>> >>
>>> >>What I am trying to achieve is a screen where
>>> >>1) The first part is made up of filter(s) that a user can select.
>>> >>No problem
>>> >>2) The second part of the screen display a summary of
>matching nodeset.
>>> >>Again no problem the nodeset is dictated by the filter
>field found
>>> >>in
>>>part
>>> >>1 of the screen.
>>> >>3) The third part of the screen display details of the selected
>>> >>entry
>>>from
>>> >>the summary. This is where things get messy.
>>> >>
>>> >>All is fine if I do not apply any filter. If  I apply a
>filter then
>>> >>the index returns the index value of the repeat which does not
>>> >>match the unfiltered nodeset of my instance!!!
>>> >>
>>> >>So for example if my intance has 5 repeating nodes the index
>>> >>function
>>>will
>>> >>allow me to access my instance node as long has the
>repeat does not
>>>skip
>>>a
>>> >>node otherwise... well I am refering the wrong node of my
>instance.
>>> >>
>>> >>The only solution I can think of is to set an 'xform:action' on
>>>Domfocusin
>>> >>set a temporary field and use that field in my detail to
>figure out
>>>which
>>> >>node to access.  I looked at using repeat-current but my detail
>>> >>screen
>>>is
>>> >>not within the repeat so no luck there.
>>> >>
>>> >>As always help is appreciated.
>>> >
>>> >Let the code speak! The best thing to do would  be to send
>an XForms
>>> >document that runs in the sandbox and illustrates your issue.
>>> >
>>> >-Erik
>>> >
>>> >--
>>> >Orbeon Forms - XForms Everywhere
>>> >http://www.orbeon.com/blog/
>>> >
>>>
>>>
>>> >
>>> >--
>>> >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
>>> >ObjectWeb mailing lists service home page:
>>> >http://www.objectweb.org/wws
>>>
>>>_________________________________________________________________
>>>Say hello to the next generation of Search. Live Search - try it now.
>>>http://www.live.com/?mkt=en-ca
>>>
>>>
>>>
>>>
>>>
>>>--
>>>You receive this message as a subscriber of the
>>>[hidden email] list.
>>>To unsubscribe: mailto:[hidden email]
>>>For general help: mailto:[hidden email]?subject=help
>>>ObjectWeb mailing lists service home page:
>>>http://www.objectweb.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
>>ObjectWeb mailing lists service home page:
>http://www.objectweb.org/wws
>
>_________________________________________________________________
>Fixing up the home? Live Search can help
>http://imagine-windowslive.com/search/kits/default.aspx?kit=imp
rove&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
>




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: repeat and index xpath function

Marco Lebel
Ryan,

I just tried what you suggested and no changes did it work for you?.

My understanding is that the index fucntion will returns either 1 or 2 in
the case of my example so the test you propose will return the node instance
data at position 1 or 2 depending on which row has been selected.  But then
again I have been know to get things all wrong before!!!!

Marco


>From: Ryan Puddephatt <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: RE: [ops-users] repeat and index xpath function
>Date: Mon, 27 Nov 2006 16:17:48 +0000
>
>Marco,
> Try item[position() = index('discriminantList-repeat')]
>
>Ryan
>
>Ryan Puddephatt
>Software Engineer
>
>Teleflex Group - IT UK
>1 Michaelson Square
>Livingston
>West Lothian
>Scotland
>EH54 7DP
>
>e> [hidden email]
>t> +44(0)1506 407 110
>f> +44(0)1506 407 108
>
>
>
> >-----Original Message-----
> >From: Marco Lebel [mailto:[hidden email]]
> >Sent: 27 November 2006 16:06
> >To: [hidden email]
> >Subject: Re: [ops-users] repeat and index xpath function
> >
> >Todd, Erick, all
> >
> >Well well well my workaround did not work and I am getting
> >deeper and deeper so back to basics.
> >
> >You will find attach an example of what I am trying to acheive
> >it runs in the sandbox!!!
> >
> >While running the attach file notice that the detail screens
> >will exhibit what I was trying to explain i.e. that the repeat
> >index does not translate to the index in my nodeset once that
> >nodeset is filtered by the repeat.
> >
> >If someone would be kind enough to point me in a simple and
> >viable solution.
> >
> >Again I beleive that the problem stems from the fact that the
> >index function retruns the index value of what has been
> >display by the repeat and not the index value of the nodeset
> >in respect to the instance data!!!  So I am searching for a
> >function that will acheive that!!!!
> >
> >
> >As always thanks for the help
> >
> >
> >>From: "Todd Gochenour" <[hidden email]>
> >>Reply-To: [hidden email]
> >>To: [hidden email]
> >>Subject: Re: [ops-users] repeat and index xpath function
> >>Date: Sat, 25 Nov 2006 20:11:44 -0700
> >>
> >>I'd like to see the workaround you found, if your willing to
> >share, please?
> >>
> >>Todd Gochenour
> >>
> >>
> >>On 11/24/06, Marco Lebel <[hidden email]> wrote:
> >>>
> >>>Erick,
> >>>
> >>>Could not aggree more with you let the code speak that is...
> >but I did
> >>>come up with a work around that fixes my issue and then some...
> >>>
> >>>As always thanks for your help,
> >>>
> >>>Me,
> >>>
> >>>p.s. I promise that in the future the code will do the talking ;-)
> >>>
> >>>
> >>> >Marco,
> >>> >
> >>> >>Would you belive it but I am still having difficulty with repeat.
> >>> >>
> >>> >>What I am trying to achieve is a screen where
> >>> >>1) The first part is made up of filter(s) that a user can select.
> >>> >>No problem
> >>> >>2) The second part of the screen display a summary of
> >matching nodeset.
> >>> >>Again no problem the nodeset is dictated by the filter
> >field found
> >>> >>in
> >>>part
> >>> >>1 of the screen.
> >>> >>3) The third part of the screen display details of the selected
> >>> >>entry
> >>>from
> >>> >>the summary. This is where things get messy.
> >>> >>
> >>> >>All is fine if I do not apply any filter. If  I apply a
> >filter then
> >>> >>the index returns the index value of the repeat which does not
> >>> >>match the unfiltered nodeset of my instance!!!
> >>> >>
> >>> >>So for example if my intance has 5 repeating nodes the index
> >>> >>function
> >>>will
> >>> >>allow me to access my instance node as long has the
> >repeat does not
> >>>skip
> >>>a
> >>> >>node otherwise... well I am refering the wrong node of my
> >instance.
> >>> >>
> >>> >>The only solution I can think of is to set an 'xform:action' on
> >>>Domfocusin
> >>> >>set a temporary field and use that field in my detail to
> >figure out
> >>>which
> >>> >>node to access.  I looked at using repeat-current but my detail
> >>> >>screen
> >>>is
> >>> >>not within the repeat so no luck there.
> >>> >>
> >>> >>As always help is appreciated.
> >>> >
> >>> >Let the code speak! The best thing to do would  be to send
> >an XForms
> >>> >document that runs in the sandbox and illustrates your issue.
> >>> >
> >>> >-Erik
> >>> >
> >>> >--
> >>> >Orbeon Forms - XForms Everywhere
> >>> >http://www.orbeon.com/blog/
> >>> >
> >>>
> >>>
> >>> >
> >>> >--
> >>> >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
> >>> >ObjectWeb mailing lists service home page:
> >>> >http://www.objectweb.org/wws
> >>>
> >>>_________________________________________________________________
> >>>Say hello to the next generation of Search. Live Search - try it now.
> >>>http://www.live.com/?mkt=en-ca
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>--
> >>>You receive this message as a subscriber of the
> >>>[hidden email] list.
> >>>To unsubscribe: mailto:[hidden email]
> >>>For general help: mailto:[hidden email]?subject=help
> >>>ObjectWeb mailing lists service home page:
> >>>http://www.objectweb.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
> >>ObjectWeb mailing lists service home page:
> >http://www.objectweb.org/wws
> >
> >_________________________________________________________________
> >Fixing up the home? Live Search can help
> >http://imagine-windowslive.com/search/kits/default.aspx?kit=imp
>rove&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
> >
>
>

>
>--
>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
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

_________________________________________________________________
Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets
you stay in touch with friends and family wherever you go. Click here to
find out how to sign up!  http://www.telusmobility.com/msnxbox/




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: repeat and index xpath function

Alessandro  Vernet
Administrator
Marco,

You are correct with your assumption. Change the <xforms:group> in the
detail section as follow to get the result you are looking for:

<xforms:group ref="item[discriminant1=instance('parameters')/discriminantFilter][index('discriminantList-repeat')]">

Alex

On 11/27/06, Marco Lebel <[hidden email]> wrote:

> Ryan,
>
> I just tried what you suggested and no changes did it work for you?.
>
> My understanding is that the index fucntion will returns either 1 or 2 in
> the case of my example so the test you propose will return the node instance
> data at position 1 or 2 depending on which row has been selected.  But then
> again I have been know to get things all wrong before!!!!
>
> Marco
>
>
> >From: Ryan Puddephatt <[hidden email]>
> >Reply-To: [hidden email]
> >To: [hidden email]
> >Subject: RE: [ops-users] repeat and index xpath function
> >Date: Mon, 27 Nov 2006 16:17:48 +0000
> >
> >Marco,
> >       Try item[position() = index('discriminantList-repeat')]
> >
> >Ryan
> >
> >Ryan Puddephatt
> >Software Engineer
> >
> >Teleflex Group - IT UK
> >1 Michaelson Square
> >Livingston
> >West Lothian
> >Scotland
> >EH54 7DP
> >
> >e> [hidden email]
> >t> +44(0)1506 407 110
> >f> +44(0)1506 407 108
> >
> >
> >
> > >-----Original Message-----
> > >From: Marco Lebel [mailto:[hidden email]]
> > >Sent: 27 November 2006 16:06
> > >To: [hidden email]
> > >Subject: Re: [ops-users] repeat and index xpath function
> > >
> > >Todd, Erick, all
> > >
> > >Well well well my workaround did not work and I am getting
> > >deeper and deeper so back to basics.
> > >
> > >You will find attach an example of what I am trying to acheive
> > >it runs in the sandbox!!!
> > >
> > >While running the attach file notice that the detail screens
> > >will exhibit what I was trying to explain i.e. that the repeat
> > >index does not translate to the index in my nodeset once that
> > >nodeset is filtered by the repeat.
> > >
> > >If someone would be kind enough to point me in a simple and
> > >viable solution.
> > >
> > >Again I beleive that the problem stems from the fact that the
> > >index function retruns the index value of what has been
> > >display by the repeat and not the index value of the nodeset
> > >in respect to the instance data!!!  So I am searching for a
> > >function that will acheive that!!!!
> > >
> > >
> > >As always thanks for the help
> > >
> > >
> > >>From: "Todd Gochenour" <[hidden email]>
> > >>Reply-To: [hidden email]
> > >>To: [hidden email]
> > >>Subject: Re: [ops-users] repeat and index xpath function
> > >>Date: Sat, 25 Nov 2006 20:11:44 -0700
> > >>
> > >>I'd like to see the workaround you found, if your willing to
> > >share, please?
> > >>
> > >>Todd Gochenour
> > >>
> > >>
> > >>On 11/24/06, Marco Lebel <[hidden email]> wrote:
> > >>>
> > >>>Erick,
> > >>>
> > >>>Could not aggree more with you let the code speak that is...
> > >but I did
> > >>>come up with a work around that fixes my issue and then some...
> > >>>
> > >>>As always thanks for your help,
> > >>>
> > >>>Me,
> > >>>
> > >>>p.s. I promise that in the future the code will do the talking ;-)
> > >>>
> > >>>
> > >>> >Marco,
> > >>> >
> > >>> >>Would you belive it but I am still having difficulty with repeat.
> > >>> >>
> > >>> >>What I am trying to achieve is a screen where
> > >>> >>1) The first part is made up of filter(s) that a user can select.
> > >>> >>No problem
> > >>> >>2) The second part of the screen display a summary of
> > >matching nodeset.
> > >>> >>Again no problem the nodeset is dictated by the filter
> > >field found
> > >>> >>in
> > >>>part
> > >>> >>1 of the screen.
> > >>> >>3) The third part of the screen display details of the selected
> > >>> >>entry
> > >>>from
> > >>> >>the summary. This is where things get messy.
> > >>> >>
> > >>> >>All is fine if I do not apply any filter. If  I apply a
> > >filter then
> > >>> >>the index returns the index value of the repeat which does not
> > >>> >>match the unfiltered nodeset of my instance!!!
> > >>> >>
> > >>> >>So for example if my intance has 5 repeating nodes the index
> > >>> >>function
> > >>>will
> > >>> >>allow me to access my instance node as long has the
> > >repeat does not
> > >>>skip
> > >>>a
> > >>> >>node otherwise... well I am refering the wrong node of my
> > >instance.
> > >>> >>
> > >>> >>The only solution I can think of is to set an 'xform:action' on
> > >>>Domfocusin
> > >>> >>set a temporary field and use that field in my detail to
> > >figure out
> > >>>which
> > >>> >>node to access.  I looked at using repeat-current but my detail
> > >>> >>screen
> > >>>is
> > >>> >>not within the repeat so no luck there.
> > >>> >>
> > >>> >>As always help is appreciated.
> > >>> >
> > >>> >Let the code speak! The best thing to do would  be to send
> > >an XForms
> > >>> >document that runs in the sandbox and illustrates your issue.
> > >>> >
> > >>> >-Erik
> > >>> >
> > >>> >--
> > >>> >Orbeon Forms - XForms Everywhere
> > >>> >http://www.orbeon.com/blog/
> > >>> >
> > >>>
> > >>>
> > >>> >
> > >>> >--
> > >>> >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
> > >>> >ObjectWeb mailing lists service home page:
> > >>> >http://www.objectweb.org/wws
> > >>>
> > >>>_________________________________________________________________
> > >>>Say hello to the next generation of Search. Live Search - try it now.
> > >>>http://www.live.com/?mkt=en-ca
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>--
> > >>>You receive this message as a subscriber of the
> > >>>[hidden email] list.
> > >>>To unsubscribe: mailto:[hidden email]
> > >>>For general help: mailto:[hidden email]?subject=help
> > >>>ObjectWeb mailing lists service home page:
> > >>>http://www.objectweb.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
> > >>ObjectWeb mailing lists service home page:
> > >http://www.objectweb.org/wws
> > >
> > >_________________________________________________________________
> > >Fixing up the home? Live Search can help
> > >http://imagine-windowslive.com/search/kits/default.aspx?kit=imp
> >rove&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
> > >
> >
> >
>
>
> >
> >--
> >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
> >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
> _________________________________________________________________
> Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets
> you stay in touch with friends and family wherever you go. Click here to
> find out how to sign up!  http://www.telusmobility.com/msnxbox/
>
>
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet