0

Hope some of you can help me.

At the moment i am documenting a SharePoint.

I have made a column with the documentation number from the dokumentation system.

But now I would like the value of the column to change if there is made a new version of the document in SharePoint.

Anybody got some tricks?

OK Guys, thanks for the help so far. The problem is that when i enable versioning, somebody has to approve the version, and here that wont make any sense. The number has been attached by editing the properties of the document.

2
  • 1
    Are you referring to a document library within SharePoint? If so, they have a field called 'Version' that you can add to your list view. Commented Aug 22, 2014 at 13:16
  • Can you use C# farm solutions? Commented Aug 25, 2014 at 9:00

2 Answers 2

1

This can be simply done by using an event receiver. Then bind it to your document library. Thereafter you can update the field on ItemUpdating event.

eg:

properties["Count"]= int.Parse(properties["Count"])+1;
0

You don't need to change the document at all. All you need to do is enable versioning into your SharePoint. SharePoint supports versioning by itself. Follow instructions in this link to enable versioning.

3
  • Thanks so far, but then the problem comes when the version has to be approved. We don't wnat somebody to approve it. I've added the documentationnumber in hte properties of the document Commented Aug 25, 2014 at 7:56
  • pointbeyond.com/2009/08/31/configuring-approval-in-sharepoint this can help you to know how to set the approvals (or not to set them at all) Search for info in google in this topic. If you like my answer please mark it as an answer. Commented Aug 25, 2014 at 8:11
  • After a bit more research, it seems that the problem is that the documents havn't got this number in its metadata, and therefore SharePoint still shows the property even after a new version is uploaded. Commented Aug 25, 2014 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.