First of all, what I am using:
- SharePoint 2007
- JavaScript
- CAML Query
- Standard webservice (_vti_bin/lists.asmx)
I am selecting one or more items from a list, depending on some condition. I get the items, and perform another condition on them. If the condition is met, I want to bump the item, meaning: change the ‘Modified’ column to the current date/time but no values should be changed.
Is this possible? If so, how can this be done?
Thanks in advance!
I already had to do the same thing. Although I’m not being able to find the code, I found the post that helped me that time. It’s written in C# but is easily adaptable to javascript:
Basically we have to set the read-only property of the field as false before we try to update it and, after the update, set that property back to true.
Source:
http://stefan-stanev-sharepoint-blog.blogspot.com.br/2010/04/updating-read-only-fields-with-lists.html