Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Get list item count for a week

$
0
0
Alan:

Great to hear from you.

You'd need to generate a CAML query what gave the week's items. It would look something like this:
<Query><Where><And><Geq><FieldRefName='StartDate'/><ValueType='Date'>" + fromDate + "</Value></Geq>" +
         <Leq><FieldRefName='EndDate'/><ValueType='Date'>" + toDate + "</Value></Leq>" +
    </And></Where></Query>
Then you could call GetListItems to retrieve the items and the count. GetListItems actually returns the count of items, so that part is pretty easy.

So what do you have so far?

M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles