please can you assist with the below. Any advice is appreciated. Many thanks.
Solution Contents
- SharePoint 2007 List
- SharePoint List Columns: CreatedDate, DueDate, DaysRemaining
- Coding Script Language: Javascript/JQuery/SPServices?
Solution A SharePoint 2007 list that contains tasks and the days remaining to complete those tasks. The days remaining MUST NOT include public holidays or weekends. The DaysRemaining column must update when the page is loaded so correct value is displayed each day.
Solution Issue The best solution would be to use SharePoint calculated columns, which work great from my experience, however they do not exclude weekends for the calculation. So, I am planning on using JS to do the calculation of DaysRemaining on page load.
I require a way of looping through a SharePoint 2007 list, and then for each item in that list update the DaysRemaining column.
Could you please point me in the right direction?
I assume a for loop, and some sort of update function? I have successfully used the SPServices.SPMultipleUpdateItems but that updates a list column with the same value, not a different value for each list item.