Hello Community,
I'm using SP 2013 enterprise, I've created a list with a number field that's called WPO (Web Part Order). I want to query that list and return the items that have a WPO greater than 7. I've written the script below, and through several tests I have determined that everything is working except the "Skip" function, which never skips over the first 7 items. Has anyone else seen this issue and if so please provide guidance and code needed to resolve it.
//Helpful Links Right
$(function () {
$.ajax({
url: "/sites/bobhome/_api/web/lists/GetByTitle('Links List')/items?$Filter=Category eq 'Helpful Links'&$Select=URL,WPO&$orderby=WPO asc&$linecount=allpages&$skip=7&$top=7",
type: "GET",
headers: {"accept": "application/json;odata=verbose"
},
}).success(function (data) {
//alert("WPO " + WPO);
var listItemInfo = '';
$.each(data.d.results, function (key, value) {
listItemInfo += "<li><a href='" + value.URL.Url + "'>" + value.URL.Description + " " + value.WPO + "</a></li>";
});
$("#HLRLinksList").html(listItemInfo);
});
});Thanks!
Tom
Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy