Hi all,
I really do not get it when it comes to the xform repeat and the xpath context. You will find attach a xhtml file that does work in the sandbox. Basically I am trying within a repeat to access some information base on an ID that I have in my nodeset. You know the classical document where all the information related to an employee is tucked away in its section. Any other section that refers to an employee does so by the ID. Once I have the ID in the repeat I can't figure out how to get at the relevant employee information!!!! As always help greatly appreciated, Marco _________________________________________________________________ Ready for the world's first international mobile film festival celebrating the creative potential of today's youth? Check out Mobile Jam Fest for your a chance to WIN $10,000! www.mobilejamfest.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws repeat.xhtml (4K) Download Attachment |
Administrator
|
Marco,
Good question. We unfortunately had to resort to an extension function to address that kind of use cases. Try: ref="instance('refList')/empList/emp[id = xxforms:repeat-current('depList-repeat')/mgrId]/lastName"> See the doc here: http://www.orbeon.com/ops/doc/reference-xforms-ng#ops-extensions Other solutions in the future may include the XForms 1.1 current() function, as well as the introduction of variables. -Erik Marco Lebel wrote: > Hi all, > > I really do not get it when it comes to the xform repeat and the xpath > context. You will find attach a xhtml file that does work in the sandbox. > > Basically I am trying within a repeat to access some information base on > an ID that I have in my nodeset. > > You know the classical document where all the information related to an > employee is tucked away in its section. Any other section that refers > to an employee does so by the ID. Once I have the ID in the repeat I > can't figure out how to get at the relevant employee information!!!! > > As always help greatly appreciated, > > Marco 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 |
Erik,
Thanks, Am I right in assuming that the repeat-current() function is not available in 3.01? (since it does not work in my local sandbox but works on your sanbox) and would need to upgrade to a later version. If that is the case which version should I upgrade to? (I am close to the end of my prototype/proof of concept and would really like to get the most for ...). On the same token assuming that I will need to upgrade could you give some pointers for a clean upgrade. Marco, p.s. Thanks for the good job >From: Erik Bruchez <[hidden email]> >Reply-To: [hidden email] >To: [hidden email] >Subject: Re: [ops-users] Repeat and xpath context? >Date: Mon, 20 Nov 2006 19:36:25 +0100 > >Marco, > >Good question. We unfortunately had to resort to an extension function to >address that kind of use cases. Try: > >ref="instance('refList')/empList/emp[id = >xxforms:repeat-current('depList-repeat')/mgrId]/lastName"> > >See the doc here: > >http://www.orbeon.com/ops/doc/reference-xforms-ng#ops-extensions > >Other solutions in the future may include the XForms 1.1 current() >function, as well as the introduction of variables. > >-Erik > >Marco Lebel wrote: >>Hi all, >> >>I really do not get it when it comes to the xform repeat and the xpath >>context. You will find attach a xhtml file that does work in the sandbox. >> >>Basically I am trying within a repeat to access some information base on >>an ID that I have in my nodeset. >> >>You know the classical document where all the information related to an >>employee is tucked away in its section. Any other section that refers to >>an employee does so by the ID. Once I have the ID in the repeat I can't >>figure out how to get at the relevant employee information!!!! >> >>As always help greatly appreciated, >> >>Marco > >-- >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 _________________________________________________________________ Experience Live Search from your PC or mobile device today. 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 |
Administrator
|
Marco Lebel wrote:
> Erik, > > Thanks, Am I right in assuming that the repeat-current() function is > not available in 3.01? (since it does not work in my local sandbox but > works on your sanbox) and would need to upgrade to a later version. Probably right, yes. > If that is the case which version should I upgrade to? (I am close to > the end of my prototype/proof of concept and would really like to get > the most for ...). At this point I would say a recent nightly build. > On the same token assuming that I will need to upgrade could you give > some pointers for a clean upgrade. Things to make sure of: o backup everything ;-) o backup and remove/rename resources/ops o backup and remove/rename resources/config/theme o remove the old JAR files and add the new JAR files under WEB-INF/lib o use the new config/properties.xml file o use the new config/xforms-widgets.xsl file The latest builds have a new directory structure for the resources, and minor modifications to the epilogue and some config files, but you should still be able to use your current resources with the exception of the directories and files above. Let us know if you encounter problems. -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 |
Erik,
I went through the steps you have indicated and it almost did work... I had to do some fine tuning Basiaclly in the config directory the *.xpl and *.xsl files need to be replace as well!!! the old one are making reference the old stuff and are making calls to function that do not exist anymore... But you did give me a big head start and I really appreciate Thanks for your help, p.s. Now if I can finish my proof of concept for this Friday all will be fine!!!! >From: Erik Bruchez <[hidden email]> >Reply-To: [hidden email] >To: [hidden email] >Subject: Re: [ops-users] Repeat and xpath context? >Date: Wed, 22 Nov 2006 10:21:57 +0100 > >Marco Lebel wrote: >>Erik, >> >>Thanks, Am I right in assuming that the repeat-current() function is not >>available in 3.01? (since it does not work in my local sandbox but works >>on your sanbox) and would need to upgrade to a later version. > >Probably right, yes. > >>If that is the case which version should I upgrade to? (I am close to the >>end of my prototype/proof of concept and would really like to get the most >>for ...). > >At this point I would say a recent nightly build. > >>On the same token assuming that I will need to upgrade could you give some >>pointers for a clean upgrade. > >Things to make sure of: > >o backup everything ;-) >o backup and remove/rename resources/ops >o backup and remove/rename resources/config/theme >o remove the old JAR files and add the new JAR files under WEB-INF/lib >o use the new config/properties.xml file >o use the new config/xforms-widgets.xsl file > >The latest builds have a new directory structure for the resources, and >minor modifications to the epilogue and some config files, but you should >still be able to use your current resources with the exception of the >directories and files above. > >Let us know if you encounter problems. > >-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 _________________________________________________________________ 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 |
Free forum by Nabble | Edit this page |