Attach an HTTP Request to an Existing Long-Running Transaction
When you are building a multi-page application, it might be useful to create an object in a transaction without committing it.
If you want to provide the user with a URL to an uncommitted object, you will need to attach the view-model of the request handler to the existing long-running transaction.
The following button handler creates a Person
object and redirects to its page, without committing the object:
When the request handler for "/people/persons/{?}"
catches the request after the redirection, it needs to search for the object by its ID in the existing long-running transaction:
Read more
Last updated