共享点2013“显示过滤器选择"外部清单问题 [英] sharepoint 2013 "show filter choices" external list problem

查看:92
本文介绍了共享点2013“显示过滤器选择"外部清单问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 那么项目数超过500个项目.

According this there is an error of filtering external list then count of items is over 500 items.

因此,标头过滤不起作用.

So, header filtering is not working.

在这种情况下,是否有任何对外部列表启用标头过滤的解决方案?

Is there any solution of enabling header filtering on external list in this case?

也许有一种方法可以将限额增加到1000个或更多?

Maybe, there is a way of increasing limit up to 1000 items or more?

推荐答案

它是为外部列表设计的,作为一种解决方法,我们可以将REST API与jQuery Ajax结合使用以获取项目数据,然后使用该数据构建HTML下拉列表,然后按此下拉列表过滤列表(查询字符串过滤器)

It is by design for external list, as a workaround, we can use REST API with jQuery Ajax to get items data, then build HTML dropdown list with the data, then filter the list by this dropdown list(Query String filter).

以下代码供您参考:

<script src="//code.jquery.com/jquery-3.1.0.min.js" type="text/javascript"></script>
<script type="text/javascript">


(function(){ var listName =" TestNote" ;; var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getByTitle('" + listName +")/项目?
(function () { var listName="TestNote"; var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getByTitle('"+listName+"')/items?


top = 2000"; //执行AJAX请求
top=2000"; //execute AJAX request


这篇关于共享点2013“显示过滤器选择"外部清单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆