Prefill file in Orbeon

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

Prefill file in Orbeon

vivan
Hi,

I am trying to prefill file to the orbeon form and the steps are

1) Upload file manually(in HTML form) and make some calculation and create calculation data
2) Open new orbeon form , Post calculated data and the same file to orbeon form

Here I can post calculated data to the form(form will show prefilled calculated data) but How could I post the file to the form so that after form opens the file control will show posted file with download option.
Reply | Threaded
Open this post in threaded view
|

Re: Prefill file in Orbeon

Alessandro  Vernet
Administrator
Hi Vivan,

I don't quite understand your situation. Have you created the form in Form Builder? You seem to have an upload field in the form and some calculation, but how are they related? Maybe it would help if you could show us some screenshots?

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

Re: Prefill file in Orbeon

vivan
I have 2 forms
One is file uploader and second is normal data input form(Orbeon form)
The sequence is upload file from 1st form and submit

 

It will be submitted to the one of the Controller in my project and calculate summary using file data
Now the next step is to show that summary data and attached file with the next orbeon form.For this I can prefill summery data in next from by setting control values in <form> tag of "fr-form-data" attribute and post this to the next form.

It will show all prefilled summary data but don't know how can i pass the file with the requset so that it will be displayed on the form like below(because I don't want let user upload same file again)





in this image "Grand Totals" tag will show the summery data which works fine but what about file???