« Return to Thread: Hyperlink to a Particular Instance?

Re: Hyperlink to a Particular Instance?

by Alessandro Vernet :: Rate this Message:

Reply to Author | View in Thread

Hi Jim,

On Mon, May 5, 2008 at 4:26 PM, Jim Logan <jim-l@...> wrote:
>  For example, let's say I have a customer form that lists hyperlinks to
> outstanding customer orders. I'd like to be able to click on a customer
> order and go to an XForm to edit it. How can I formulate a hyperlink to load
> a particular order with an XForm?

Let's say the path of the page to view an order is /order/view. You
first map that this path to the XHTML+XForms in the page flow (<page
path-info="/order/view" view="view-order.xhtml"/>). Then let's say you
pass the order ID on the URL with ?order-id=123. In your XForms, on
xforms-model-construct-done, you load the instance for that ID. You
can access the ID in XPath with
xxforms:get-request-parameter('order-id'). You will typically load the
order document with a submission that calls an XPL, or a call to some
other service. Does this help?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
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
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/

 « Return to Thread: Hyperlink to a Particular Instance?