Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Get list item count for a week

Hi Marc

Currently I have this code:
<script type="text/javascript" src="/scripts/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.SPServices-2014.01.min.js"></script>
<script language="javascript" type="text/javascript">

 $().SPServices({
  operation: "GetListItems",
  listName: "Opportunities",
  async: false,
  completefunc: function (xData, Status) {
    $(xData.responseXML).find("rs\\:data").each(function() {
     itemCount = $(this).attr("ItemCount");
    });
  }
 });
 alert(itemCount);
</script>
Which works, in that it shows an alert with a count of the current number of list items.

What I need is for it to write it to the CEWP that the script is in and only show the count of items for the Monday to Sunday.

Thanks

Alan

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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