Out Of The Box Sharepoint (?)

November 27, 2008

Recover listitem versions: version.count – version

Filed under: Sharepoint — Peter Kruisman @ 3:31 pm

I wanted to show the user a specific version of a listitem. My first impression was that this could be programmed swiftly. It proofed to be a bit more tricky. The solution was that the current version is 0 and not the version number shown to the user in the list. So if you know the version you want to recover substract that form the item.versions.count to get the value for item.Versions[value]

Happy programming, grrrrrrr

versions

Create a free website or blog at WordPress.com.