retrieve model by session id

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

retrieve model by session id

Bart Ottenkamp
Hai all,

does anybody know whether it is possible to make a form where the user can leave the form (for going to a paying service) and come back to it and not loose all data filled in up to that point?

The paging service has this redirect url which obviously should be the url to my form but this results in a complete reload of the form and all data is gone.
I specifically don't want to use pop-ups and using the back button doesn't always work in all browsers (keeping state), so now I was wondering whether it is possible to call my form with a session id or somethnig to collect the state of the model belonging to that user's session.
If that's possible, that I could replace the empty model with taht one and I'm done...

Best regards,
Bart Ottenkamp




--
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
Reply | Threaded
Open this post in threaded view
|

RE: retrieve model by session id

Steve Bayliss
Message
You can use the scope generator and serializer processors (in XPL) to do this -
 
 
Steve
-----Original Message-----
From: Bart Ottenkamp [mailto:[hidden email]]
Sent: 12 August 2009 12:18
To: [hidden email]
Subject: [ops-users] retrieve model by session id

Hai all,

does anybody know whether it is possible to make a form where the user can leave the form (for going to a paying service) and come back to it and not loose all data filled in up to that point?

The paging service has this redirect url which obviously should be the url to my form but this results in a complete reload of the form and all data is gone.
I specifically don't want to use pop-ups and using the back button doesn't always work in all browsers (keeping state), so now I was wondering whether it is possible to call my form with a session id or somethnig to collect the state of the model belonging to that user's session.
If that's possible, that I could replace the empty model with taht one and I'm done...

Best regards,
Bart Ottenkamp




--
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
Reply | Threaded
Open this post in threaded view
|

Re: RE: retrieve model by session id

Ger G
Hi Bart,
You can try saving the form before redirecting the user, and then retrieve it, using an id from a get/post parameter. This may help you, it helped me when i had a similar problem:
http://blog.msbbc.co.uk/2008/05/orbeon-inline-xslt-and-get-parameters.html

Regards,
German


On Wed, Aug 12, 2009 at 11:07 AM, Steve Bayliss <[hidden email]> wrote:
You can use the scope generator and serializer processors (in XPL) to do this -
 
 
Steve
-----Original Message-----
From: Bart Ottenkamp [mailto:[hidden email]]
Sent: 12 August 2009 12:18
To: [hidden email]
Subject: [ops-users] retrieve model by session id

Hai all,

does anybody know whether it is possible to make a form where the user can leave the form (for going to a paying service) and come back to it and not loose all data filled in up to that point?

The paging service has this redirect url which obviously should be the url to my form but this results in a complete reload of the form and all data is gone.
I specifically don't want to use pop-ups and using the back button doesn't always work in all browsers (keeping state), so now I was wondering whether it is possible to call my form with a session id or somethnig to collect the state of the model belonging to that user's session.
If that's possible, that I could replace the empty model with taht one and I'm done...

Best regards,
Bart Ottenkamp




--
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




--
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
Reply | Threaded
Open this post in threaded view
|

RE: retrieve model by session id

Alessandro Vernet
Administrator
In reply to this post by Steve Bayliss
Bart,

Steve Bayliss wrote
As Steve said above, you can use the scope generator/serializer processors from a pipeline, but you can also use the xxforms:set-session-attribute() and xxforms:get-session-attribute() extension functions directly from XForms. You'll find more about those on:

http://www.orbeon.com/ops/doc/reference-xforms-functions

Alex