This is a migrated thread and some comments may be shown as answers.

Savepoints

4 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Manfred
Top achievements
Rank 1
Manfred asked on 30 Jan 2009, 10:52 AM
Hello,
a question: is there any support for save points in Telerik Open Access?? If yes how can I use them?
Because I did not find anything in the documentation...

Regards
Manfred

4 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 02 Feb 2009, 07:53 PM
Hi Manfred,
We do not support safe points at the moment. There is functionality to flush the changes to the server and keep the server side transaction open until you call commit.

This makes sure that the server can lock the respective resources and make it easier to reduce the optimistic verification errors, but also needs more server resources.

All the best,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Manfred
Top achievements
Rank 1
answered on 03 Feb 2009, 07:14 AM
Hello,
this is a pity.
How would be the best practice if you have the following scenario:
- A form is shown where the user can create/edit a new customer and a transaction is started
- In this form a second form can be shown to create/edit the address of the customer; this form provides a save and a cancel button
How could it be done to undo the modifications of the address but maintain the modifications of the customer?

I found a suboptimal solution by first copying the values of the address object into a new one and passing that one to the address form. If save was clicked I copy the values back to the customer address; if cancel was clicked I do nothing.
With savepoints this could be done in a very simple way; but do You have any suggestion how this can be done simpler without the copying?

Regards
Manfred
0
Jan Blessenohl
Telerik team
answered on 03 Feb 2009, 08:09 AM
Hello Manfred,
With Savepoints this is also not possible because the data is visible to other clients. I mean the change of the lower dialog is visible before the dialog is really closed.

I can see 2 solutions. You can implement IEditableObject at your address class or you can use the ObjectContainer.

With the ObjectContainer you can make an in memory copy of the objects you need and decide on OK/Cancel if you want to copy the result back to the scope.

All the best,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Manfred
Top achievements
Rank 1
answered on 03 Feb 2009, 03:13 PM
Hello,
thanks for the suggestion. The proposal with the object container works perfectly.

Regards
Manfred
Tags
General Discussions
Asked by
Manfred
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Manfred
Top achievements
Rank 1
Share this question
or