本文介绍了Sharepoint 2013 REST API 100项限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我在Sharepoint网站上有一些层叠的表格,效果很好.
I have some cascading forms in a Sharepoint site that works just fine.
问题是下拉列表限制为100个项目.我的清单包含大约200个.
The issue is the dropdowns are limited to 100 items. My list contains about 200.
是否有任何方法可以修改以下代码(假设需要进行修改!)以限制所调用的项目数量?
Is there any way to amend the below code (presume that is where the amendment needs to happen!) to unconstrain the number of items called?
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('"+params.childList+
"')/items?$select=Id,"+params.childLookupField+","+params.parentFieldInChildList+
"/Id&$expand="+params.parentFieldInChildList+"/Id&$filter="+params.parentFieldInChildList+
"/Id eq "+ parentID+"&$orderby=" + params.childLookupField,
type: "GET",
dataType: "json",
headers: {
Accept: "application/json;odata=verbose"
谢谢
推荐答案
100个项目的限制是设计使然.但是,您可以添加&
100 items limit is by design. However you can add "&
您的URL看起来像下面的
Your URL would look like below with
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('"+params.childList+
"')/items?
这篇关于Sharepoint 2013 REST API 100项限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!