Enhancing the government forms example

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

Enhancing the government forms example

jwt003
First of all, this is such an amazing piece of work!  Thank you for sharing it.  I am using the 'forms' app as a base for some quote request forms for a client of mine.

I have created a new folder based on the /details/ folder, called new, by which customers can access an individual form.  It points to a separate view which is based on a basic schema template which gatheres the required information.

The full form is accessible via the summary page, so that an agent can go in, review the input information, prepare a quote, and input the quote information into the full form.

I am really looking for some advice on how to accomplish several things...

1)  On the new-view.xhtml form that I created based on the detail-view.xhtml form, instead of having the "save" and "back" buttons, I need to find a way to only have a save/submit button that saves the form to the exist db, just as it does now... but also generates an email to my client that a request has been saved/submitted.  I also would like to have it redirect the customer to a "thank you" page instead of simply displaying the "saved successfully" message.  I assume that this means creating a new 'save-submission' in the persistence-model.xml?

2)  from the summary page, where one can click on the 'view PDF' button... I would like to find a way to have a button to EMAIL the PDF Form to an email address saved in the form itself.

I realize that I am probably asking for the moon... but it seems like a lot of people would be able to use this functionality of a front-end / back-end interaction between a company and it's customers.

I appreciate any ideas / input / suggestions that anyone has!

John T.
Reply | Threaded
Open this post in threaded view
|

Re: Enhancing the government forms example

Alessandro Vernet
Administrator
Hi John,

To send an email, you can write an XPL file (or pipeline) which calls
the email processor. You can read more about the email processor on:

http://www.orbeon.com/ops/doc/processors-messaging-email

1. To go to another page when users click on "save", simply insert the
relevant <xforms:load> after you run the submission that saves the
document. In addition to the submission that saves the document, you
can also call here another "service" (that is URL mapped to an XPL).
That service sends the email using the email processor.

2. The email processor supports binary attachments. So it will work
here as well to send the PDF you generate by email instead of sending
it as a response to an HTTP request.

I hope this helps,

Alex

On 2/28/07, jwt003 <[hidden email]> wrote:

>
> First of all, this is such an amazing piece of work!  Thank you for sharing
> it.  I am using the 'forms' app as a base for some quote request forms for a
> client of mine.
>
> I have created a new folder based on the /details/ folder, called new, by
> which customers can access an individual form.  It points to a separate view
> which is based on a basic schema template which gatheres the required
> information.
>
> The full form is accessible via the summary page, so that an agent can go
> in, review the input information, prepare a quote, and input the quote
> information into the full form.
>
> I am really looking for some advice on how to accomplish several things...
>
> 1)  On the new-view.xhtml form that I created based on the detail-view.xhtml
> form, instead of having the "save" and "back" buttons, I need to find a way
> to only have a save/submit button that saves the form to the exist db, just
> as it does now... but also generates an email to my client that a request
> has been saved/submitted.  I also would like to have it redirect the
> customer to a "thank you" page instead of simply displaying the "saved
> successfully" message.  I assume that this means creating a new
> 'save-submission' in the persistence-model.xml?
>
> 2)  from the summary page, where one can click on the 'view PDF' button... I
> would like to find a way to have a button to EMAIL the PDF Form to an email
> address saved in the form itself.
>
> I realize that I am probably asking for the moon... but it seems like a lot
> of people would be able to use this functionality of a front-end / back-end
> interaction between a company and it's customers.
>
> I appreciate any ideas / input / suggestions that anyone has!
>
> John T.
> --
> View this message in context: http://www.nabble.com/Enhancing-the-government-forms-example-tf3310127.html#a9207659
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws