如何根据“分组依据”属性缩小 SharePoint 2007 视图的筛选结果范围?
我在 SharePoint 2007 中有一个列表,并且创建了一个根据时间([今天]-30)进行筛选的视图。我还将视图设置为按人员或组列分组。最终结果是一个视图,显示过去 30 天内按个人分组的所有条目。
因此,我想做的只是包含那些在视图中显示有 2 个或更多条目的个人。有办法做到这一点吗?
谢谢, 布莱恩
I have a list within SharePoint 2007 and I've created a View that filters based on time ([Today]-30). I also have the View set to Group By a People or Group column. The end result is a View that displays all entries in the past 30 days grouped by individual.
So, what I'd like to do is only include those individuals that have 2 or more entries to display within the view. Is there a way to do this?
Thanks,
Brian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过 UI 构建的视图基于 CAML 查询,仅允许将过滤器应用于项目。从架构中可以看出,过滤器不能应用于分组依据。
http://msdn.microsoft.com/en-us/library/ms415157.aspx
您的选择是:
使用 sharepoint 设计器和 jquery 的某种组合来过滤它。此过滤将在从数据库检索结果之后完成,因此它不会很理想。
编写自定义 Web 部件。
Views built through the UI are based on CAML queries, which only allow filters to be applied to items. As you can see from the schema, filters cannot be applied to group bys.
http://msdn.microsoft.com/en-us/library/ms415157.aspx
Your options are:
Filter it with some combination of sharepoint designer and jquery. This filtering would be done after the results are retrieved from the database, so it wont be ideal.
Write a custom web part.