Happy Tuesday!SharePoint 2010 REST:getJSON&5,000以上のレコードを持つリストに追加
私は問題を抱えています。私はうまく動作しないようです。私は5,000以上の項目を持つRESTを使用してリストを照会しようとしています。私は最良の方法は、最初の0 <> 5000、もう1つは> 5000をループし、次に結果を追加すると考えましたが、動作させることができません。誰もがこれを経験している?
function fnResidences(choice) {
$.getJSON("../_vti_bin/ListData.svc/Residences?$expand=Country&$select=Country/Country,*$filter=(Id gt 0 and Id lt 5000) and (Country/Country eq '" + choice + "')", function (data) {
if (data.d.results == 0) {
$("#Residences-Table").html("N/A");
} else {
$("#Residences-Table").empty();
$.each(data.d.results, function (data) {
$("#Residences-Table").append("<tr><td>"+this.ResidenceName+"</td></tr>");
$.getJSON("../_vti_bin/ListData.svc/Residences?$expand=Country&$select=Country/Country,*$filter=(Id gt 5000) and (Country/Country eq '" + choice + "')", function (data) {
if (data.d.results == 0) {
$("#Residences-Table").html("N/A");
} else {
$("#Residences-Table").empty();
$.each(data.d.results, function (data) {
$("#Residences-Table").append("<tr><td>"+this.ResidenceName+"</td></tr>");
});
}
})
});
}
})
}
(Id gt 0とId lt 5000に追加) –