Re: Re: Re: How can I get at the document url?

Posted by Hank Ratzesberger on
URL: https://discuss.orbeon.com/How-can-I-get-at-the-document-url-tp44819p44823.html

> Am Samstag, den 01.08.2009, 16:26 -0700 schrieb Erik Bruchez:

>> Do you mean the URL of the document on the server, e.g.:
>>
>> oxf:/apps/my-app/foo.xhtml
>>
>> Or do you mean the URL as seen by the browser, e.g.:
>>
>> http://example.com/orbeon/my-app/foo
>>
>> -Erik
>
> I mean the url the browser sees, including query string.
>
> I know how to get instance data into xforms with orbeon, e.g. XInclude /
> input:instance , but what would be a more portable way? If I could get
> the document url (ok, browser document url) I could use the query string
> and load an instance using a dynamic submission element.
>
> I'm just curious, I have a solution for now.
I see.  You can get known parameter values with the extended
functions, e.g.:

<xforms:setvalue ref="my-param" value="xxforms:get-request-parameter('myparam')"/>

http://www.orbeon.com/ops/doc/reference-xforms-functions

To get the url, you can use the request generator processor

http://www.orbeon.com/ops/doc/processors-generators-request

in an xpl file with an output param.  And the file is the
model attribute of your page flow.  Then, e.g.:

<xforms:instance src="input:data"/>

(If I have it right this time)

Cheers,
Hank





--
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