Upload data from an external page in the Orbeon form

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

Upload data from an external page in the Orbeon form

inigo10rodri
Hello,

I would like to know if it is possible by configuring the properties,
creating a process or otherwise. Call another page from a link in the Orbeon
form, to fill in some data and then receive the data entered on the external
page within the Orbeon form.

Thank you,
Iñigo.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Upload data from an external page in the Orbeon form

Alessandro  Vernet
Administrator
Hi Iñigo,

There is a way for you to POST the entire form data to a `/new` page (see
1st link below). But doing so has downsides: you need to POST the *exact*
XML document used by the page, which can be a maintenance issue as you'll
then need to change that data every time the form is changed.

Instead, in most cases the value of individual fields is passed to the form,
either:
1. As request parameters, if exposing those values to users isn't a problem.
2. As header values set in a reverse proxy, if you don't want users to be
able to see or change those values.

And of course you can use a combination of both techniques. Then you set
form fields to those values using `xxf:get-request-parameter()` for the 1st
case (see 2nd link below), or `xxf:get-request-header()` for the 2nd case
(see 3rd link below).

You'll let me know if this works for you.

https://doc.orbeon.com/configuration/properties/form-runner/form-runner-detail-page#initial-data-posted-to-the-new-form-page
https://doc.orbeon.com/xforms/xpath/extension-functions/extension-http#xxf-get-request-parameter
https://doc.orbeon.com/xforms/xpath/extension-functions/extension-http#xxf-get-request-header

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Upload data from an external page in the Orbeon form

Alessandro  Vernet
Administrator
Hi Iñigo, if this is still current, did you managed to pass information to
your form either as request parameters, or passing the whole data, per my
earlier message in this thread?


-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Upload data from an external page in the Orbeon form

inigo10rodri
Hello Alessandro,

I'm sorry for not answering you before, I was on vacation and trying out the
options you were proposing.

I have managed to send parameters by URL from a jsp that I created and I can
show it on the Orbeon form the value passed from the other page.
The problem that I have now is that I need to keep the data of the form, so
that when returning from the external page it shows the data that the user
had entered.
Is there any way to do it?

Thank you very much,
Iñigo

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Upload data from an external page in the Orbeon form

Alessandro  Vernet
Administrator
Hi Iñigo,

What do you mean by "keep the data of the form"? Are you saying that you
don't want the data you pass to the form not to be displayed to users?
(Maybe an example of what you'd like to create would help me understand the
issue you're trying to solve.)

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Upload data from an external page in the Orbeon form

inigo10rodri
Hi Alessandro,

What I want to say is that I have different entries in the form and once I
complete them, I access the external page through a link.
I complete the information on the external page and return to the form. But
when I return from the external page, the data I entered previously
disappears.
So, the question is whether there is any way to keep that data in the form
so that when it comes back from the external page, the entries that were
completed are not empty and is keeped what I had written?

I hope I have explained it better and that you can understand it, thank you.

Iñigo.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Upload data from an external page in the Orbeon form

Alessandro  Vernet
Administrator
Hi Iñigo,

Are you setting the value of those fields with an XPath expression you put in "Initial Value"? I imagine that XPath would call `xxf:get-request-parameter('gaga')`, or something along those lines. Then the value will be stored in the form data, and will be kept. If you reload data you saved previously, the value still be there.

Are you doing something like this? Or am misunderstanding your situation?

-Alex

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Upload data from an external page in the Orbeon form

inigo10rodri
Hi Alessandro,

Yes, I'm setting the value of those fields with the XPATH expression to
catch the parameter passed by the URL. The problem is not there, the value
of the parameters passed by request are loaded well in the corresponding
fields.

Let's put ourselves in situation:

The first thing I do is fill in the details of the form. Once I have filled
and saved everything correctly, I access the external page by a link to make
the digital signature.
After signing I return to the form and that's where the problem is, I do not
know how to show the data I had entered before going to make the digital
signature.
I had thought to redirect to the edit page and pass the document_id as a
parameter but I can not get it. Do you know if it could be possible?

Iñigo.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].