Hi,

I have a view of an invoice and a button "print" that, when clicked,
downloads the same invoice in a pdf format. This works fine: user can
save/open a pdf version of the view this way. When the pdf is sent to
the user, the view that was displayed when the "print" button was
clicked is not changed. So the invoice (s)he was viewing is still
there, unchanged. That makes sense: I do a request and instead of
getting a new page I get a response of application/pdf type that is
handled differently by the browser. But I want that view to change as
well: I want a list view of all invoices displayed when the "Print"
button is pressed as well.

Both of these are no problem in itself but I wonder if it is possible
to have 1 request - e.g. event=invoice.print do both:
send a response of type application/pdf the client
and
and send a response of type text/html (a new view) that gets displayed
in the bowser.
The reason I want this is I don't want the user to be able to print
subsequent versions of an invoice with say-different dates or numbers.
Of course I could use Ajax to update the view after clicking "Print"
or do a 2nd request for the view but then a user could easily
circumvent this by disabling Javascript.

How would one do this using ModelGlue with a controller/services
architecture?

Thanks,

Marc

Model/Glue unity, CF9.0.1

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to