限制记录共享点列表检索 [英] limiting the records sharepoint list retrieval

查看:53
本文介绍了限制记录共享点列表检索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个包含1000条记录的共享点列表,代码通过CAML查询将所有记录绑定到网格视图.

Hi,

I have sharepoint list which contains 1000 records, code is  binding all the records to grid-view via CAML query.

在加载页面时需要花费大量时间.因为这是旧的MOSS 2007应用程序
进行代码更改和部署非常困难.
有什么方法可以限制记录数量,而不是通过caml查询返回,它应该检索前100条记录.

while loading the page its taking lot of time. since this is old MOSS 2007 application
making the code changes and deployment is very difficult.
Is there any way i can limit the number of records instead  of returning by caml query it should retrieve top 100 records.

请注意我要在列表级别而不是代码级别进行更改.

Please noet that I want to make changes at List level not code level.

此致

Patil

推荐答案

我假设CAML查询使用默认视图?如果是这样,请修改默认视图以仅返回1000条记录.否则,您将需要在代码中修改CAML查询以限制结果集.
I'm assuming the CAML query uses the default view?  If so modify the default view to return only 1000 records.  Otherwise you'll need to modify the CAML query in the code to limit the result set.


这篇关于限制记录共享点列表检索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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