1

In my webpart I need to populate the data from the sharepoint lists and libraries.

I have an option to change the data in the UI and that should reflect the same in the lists/libraries when i click on save button.

Problem is even if I am not changing the data and click on save the new versions are adding in my version history with out any changes..

This brings lot of problems in the audit. I need solution/code that it should update the version history only if the item(list row) is changed when we click on save button.

1 Answer 1

1

You need to put this logic in the code itself. Before overwriting the list item, compare the list item with the previous version and if its same, do not overwrite.

2
  • this won't be possible..there will be dynamic controls more than 200 ...comparing every field will decreace the performance....i need know if any object like UpdateOnlyIfChanging like that...
    – Govind
    Commented Aug 20, 2011 at 9:19
  • Thanks Madhur..at last i did the same :( ..i don't find other way
    – Govind
    Commented Aug 24, 2011 at 12:17

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.