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
query is just a string which contains the CAML we're using to tell GetListItems what to fetch for us, so what you see there is right.

In the SPServices call, you're not passing in the CAMLQuery:
    $().SPServices({
        operation: "GetListItems",
        listName: "Opportunities",
        CAMLQuery: query,
        async: false,
        completefunc: function(xData, Status) {
            itemCount = $(xData.responseXML).SPFilterNode("rs:data").attr("ItemCount");
        }
    });

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>