hi all,
I want to save in disk forms. Orbeon shows the form through a xpl and it´s ok. The code is the standard xhtml : <xhtml> <head> </head> <body> </body> </xhtml> Save with 'submission' and 'file-serializer' a instance is easy , but I want to save all the code, include the xhtml tags ... Is there any general instance? ... any temporaly file? ... Any Idea about this? Thanks |
Administrator
|
In general:
* An XForms document may contain a number of models, each of which may contain a number of instances. * An XForms submission can save XML data contained in a given instance. This does not give you access, from XForms, to the actual XForms document. What exactly are you trying to achieve? -Erik On Apr 9, 2008, at 9:19 AM, Dromela wrote: > > hi all, > > I want to save in disk forms. Orbeon shows the form through a xpl > and it´s > ok. The code is the standard xhtml : > > <xhtml> > <head> > </head> > <body> > </body> > </xhtml> > > Save with 'submission' and 'file-serializer' a instance is easy , > but I want > to save all the code, include the xhtml tags ... Is there any general > instance? ... any temporaly file? ... > > Any Idea about this? Thanks > > -- > View this message in context: http://www.nabble.com/saving-forms-tp16590274p16590274.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
exactly this, access to the actual XForms document. The idea is :
- Receive a form store in the Database - Introduce the data that is required in the form (name, address ...) - A button of "Save" that store this form in the disk for access to him in the future and modify that is required ... This is the basic idea, in the future a want to convert the Xforms to PDF and save the form in the disk in this format, not in xhtml. Any idea? (Thanks Erik for the previous answer)
|
Administrator
|
On Wed, Apr 9, 2008 at 11:55 AM, Dromela <[hidden email]> wrote:
> > exactly this, access to the actual XForms document. The idea is : > > - Receive a form store in the Database > - Introduce the data that is required in the form (name, address ...) > - A button of "Save" that store this form in the disk for access to him in > the future and modify that is required ... > > This is the basic idea, in the future a want to convert the Xforms to PDF > and save the form in the disk in this format, not in xhtml. > Any idea? (Thanks Erik for the previous answer) Could you precise a little bit that question? ;) 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/ -- 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 |
Yes, if is possible to do this ... store in the disk the full form, no the instances or some idea how to do it. Thanks
|
Administrator
|
On Wed, Apr 9, 2008 at 2:10 PM, Dromela <[hidden email]> wrote:
> Yes, if is possible to do this ... store in the disk the full form, no the > instances or some idea how to do it. Thanks You have a few options to generate a PDF. If you already have a template, the best is to use the PDF template processor. This is what the Government Forms example is doing. Then to save the data on disk, you will be looking at the file serializer or URL serializer. More on this at: http://localhost:8080/orbeon/doc/processors-serializers. I hope this helps, 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/ -- 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 |
ok, thanks, but I don´t want now convert to pdf, I want to store in Xforms document. The same thing that Orbeon show me + the info that I insert in this form.
Resume : I want to know if it´s possible store "ALL" the form, no only the instances : <html> <head> ... </head> <body> ... </body> </html> From <html> To </html> including this tags.
|
Administrator
|
Almost everything is possible, given enough work ;-)
Clearly: * You have the XForms document ("XHTML+XForms") somewhere, since you are displaying it. * You have the "form data" in an instance, since you are capturing it. This said, you can't just, from XForms, access the XHTML+XForms itself. There is no such built-in functionality at the moment. We are currently working on our Form Runner environment. In this environment, the Form Runner does something similar to what you are trying to do: it loads a complete form (XHTML+XForms) and displays it. However, the Form Runner also needs access to the XHTML+XForms in order to extract metadata. We solved this problem by having the Form Runner: 1. Load the XHTML+XForms as usual and send it to the epilogue 2. Load the XHTML+XForms and store it into the request using oxf:scope- serializer. Then, upon xforms-ready, we use an extension function, xxforms:get-request-attribute(), to load the XHTML+XForms into an XForms instance. If you did something similar to this, then you could pass your XHTML +XForms to a submission since it would be in an XForms instance. -Erik On Apr 10, 2008, at 12:35 AM, Dromela wrote: > > ok, thanks, but I don´t want now convert to pdf, I want to store in > Xforms > document. The same thing that Orbeon show me + the info that I > insert in > this form. > > Resume : I want to know if it´s possible store "ALL" the form, no > only the > instances : > > <html> > <head> > ... > </head> > <body> > ... > </body> > </html> > > From <html> To </html> including this tags. > > > Alessandro Vernet wrote: >> >> On Wed, Apr 9, 2008 at 2:10 PM, Dromela <[hidden email]> >> wrote: >>> Yes, if is possible to do this ... store in the disk the full >>> form, no >>> the >>> instances or some idea how to do it. Thanks >> >> You have a few options to generate a PDF. If you already have a >> template, the best is to use the PDF template processor. This is what >> the Government Forms example is doing. >> >> Then to save the data on disk, you will be looking at the file >> serializer or URL serializer. More on this at: >> http://localhost:8080/orbeon/doc/processors-serializers. >> >> I hope this helps, >> >> 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/ >> >> >> -- >> 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 >> >> >> ----- >> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise >> http://www.orbeon.com/ >> >> > > -- > View this message in context: http://www.nabble.com/saving-forms-tp16590274p16603749.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
It´s a good idea Erik, thanks. However my Orbeon version is 3.6 and the function xxforms:get-request-attribute() doesn´t work. I´m not sure to update to nightly build ...
Your idea is good, but I have the same problem ... I can store the XHTML + XFORMS at the beginning (xforms-ready), but if I realize changes in the form ... I stored an old version of the form. Is possible to locate in another place the oxf:scope-serializer for store in all moment the current form? Thanks
|
Administrator
|
On Fri, Apr 11, 2008 at 6:04 AM, Dromela <[hidden email]> wrote:
> It´s a good idea Erik, thanks. However my Orbeon version is 3.6 and the > function xxforms:get-request-attribute() doesn´t work. I´m not sure to > update to nightly build ... With 3.6 which didn't support xxforms:get-request-attribute() yet, you can have a model in your page flow, in the XPL for that model get the request attributes with the request generator, and pass that document to the view. Or you can upgrade to a nightly build and simply use xxforms:get-request-attribute() from XForms ;). 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 [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 |
Free forum by Nabble | Edit this page |