Concurrency Control

Apr 7, 2011 at 12:36 AM

Hi, I have a concurrency control trouble.

How could I have a Concurrency Control with SPServices when I save data with updateListItems?

Hopefully someone can help me out

Regards

Coordinator
Apr 7, 2011 at 1:02 AM

You haven't really given anything to go on. What's the issue? What re you trying to do?

M.

Apr 7, 2011 at 5:12 AM

If two or more users try to simultaneously update the same record in the list, how I can handle the concurrency?

Regards.

Coordinator
Apr 7, 2011 at 11:25 AM

You'll have to build logic for this yourself, depending on how you want to handle it. You can check the Modified date and act upon it. I don't think that you'll fully solve it because there can always be a time gap.

M.

Apr 7, 2011 at 12:13 PM

Do you think an Event Handler would be the most appropriate in this situation?  That may not be an option, but I figured I'd throw it out there.

Coordinator
Apr 7, 2011 at 12:32 PM

There's no record locking with the Web Servcies, so it isn't the right solution for everything. If you're in a high volume transaction situation, you will definitely have issues.

If, on the other hand, two users are unlikely to edit the same item, then you are golden. The second write will "win" with the Web Services.

M.