May 2015 M T W T F S S « Sep 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Tag Archives: List Item
In overview the strategy is one of replaying history. Each version of the file is reposted to the document library. The comment and last modified date is handled with a combination of SPFile.Checkin() and SPListItem.Update(). Intrigued? Then read on….
You would like to think that SharePoint records the Creation and Modification dates for each item once only. Wrong! Take a document in a document library. The item is seen as both an SPListItem and an SPFile. The created and … Continue reading
I’m not sure if others have encountered this behaviour when progammatically adding a content type to a list. In the following code I am adding a content type to a list and ensuring that it appears on the new menu, … Continue reading
Let me explain by way of an example. You have implemented a custom insitu EDRMS solution which will set the permissions on an item to ‘Readonly’ when the item’s Item Status column is set to a value of ‘RECORD’. In making the item … Continue reading
NEVER EVER use List.Items.GetItemById(ID) or List.Items[ID] Use List.GetItemById(ID) instead. Under normal conditions when there are relatively few items in a list then all will seem to go well. However, as time goes by and the list item count increases then … Continue reading