Hi everyone,
I'd like to be able to load an XML file, but only display and edit a specific node from that file. Each has an @id For example: <xml> <element id="c01"> <stuff/> </element> <element id="c02"> <stuff/> </element> <element id="c03"> <stuff/> </element> <element id="c04"> <stuff/> </element> <element id="c05"> <stuff/> </element> </xml> Each <element> is fairly complex, so I don't want to display the entire document in the form at one time. Let's suppose I want to display and edit the one with @id='c04' . How can I make this possible? I know I can use xforms:group to do something like this: <xforms:group ref="//element[@id='c04']"> , but I need to be able to do this dynamically. How can I pass in a variable for @id= instead of hard coding it? Thanks, Ethan -- 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 |
Actually, I think I figured it out using a different method:
http://n4.nabble.com/xforms-get-request-parameter-can-only-be-called-during-XForms-initialization-td41710.html#a41710 I ran into problems trying to use get-request-parameter and loading it into a variable. On Fri, Oct 16, 2009 at 10:58 AM, Ethan Gruber <[hidden email]> wrote: Hi everyone, -- 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 |
Administrator
|
Ethan,
On Fri, Oct 16, 2009 at 8:44 AM, Ethan Gruber <[hidden email]> wrote: > I ran into problems trying to use get-request-parameter and loading it into > a variable. You can only use xxforms:get-request-parameter() when the page is sent to the client, which usually means on xforms-model-construct-done. So you'll need to first store that request parameter in a node of an instance on xforms-model-construct-done, and you can then use it later on. Alex -- Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |