Get filled form as HTML

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

Get filled form as HTML

hellebumbech
Hi

I am working on a custom application with Orbeon 4.5.1 using separated deployment. In our custom application we receive the form that the user has filled out as a pdf. Is there any way to get it as HTML? Or is it possible in Orbeon Runner to save the content of the summary page as HTML somehow?

Best regards,
Helle
Reply | Threaded
Open this post in threaded view
|

Re: Get filled form as HTML

Alessandro  Vernet
Administrator
Hi Helle,

Can I ask what you'd like to do with that HTML? Form Runner doesn't support saving the HTML out-of-the-box, but depending on what you want to do with the HTML, you could write your own code that calls the persistence layer, retrieves the data, and does something with it. Or if it's really the full HTML you're after, you could write code that loads the HTML, like the browser does, and "saves it"?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Get filled form as HTML

hellebumbech
Hi Alex

Thank you for your answer. I need to send the content of the summary page to a web service that only accepts html as input. So I think it is your second option that I am looking for - where and how could I write this code?

Br, Helle
Reply | Threaded
Open this post in threaded view
|

Re: Get filled form as HTML

Alessandro  Vernet
Administrator
Hi Helle,

You'll need to write code for this, and pretty much any language or environment you or someone in your team is familiar with will do. The gist of it really is just to retrieve the HTML for the page by making an HTTP request to Orbeon Forms, just like your browser does when you load the form.

But, if you haven't done so already, you might want to check with the owners of that web service that they will accept that HTML, as it is somewhat unusual for a web service to consume HTML, especially when it is produced by a third-party application.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet