This project has moved and is read-only. For the latest updates, please go here.

Concurrency Control

Apr 7, 2011 at 1: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


Apr 7, 2011 at 2:02 AM

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


Apr 7, 2011 at 6:12 AM

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


Apr 7, 2011 at 12:25 PM

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.


Apr 7, 2011 at 1: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.

Apr 7, 2011 at 1: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.