Creating SharePoint View with Distinct Column value

99封情书 提交于 2019-12-13 04:41:18

问题


Is it possible to create a custom list view (Not a list view webpart) with unique column value. I have one list which has 5 column like project ID, Project Name, Activity ID, Status, Points.

I want to create a Custom list view where the Activity ID column should be return distinct value only. How Can I achieve this goal? Please help to do this. All suggestions and answers will be appreciated.

Thanks in advance..


回答1:


SharePoint List views are based on CAML queries and CAML does not support retrieving DISTINCT values yet.

What you can do is use GROUP BY, which will group all the similar results together and you can optionally collapse it as well, looking like a distinct rows.

http://social.technet.microsoft.com/Forums/sharepoint/en-US/c2bbcf13-a53d-4755-87dd-871a51840a4d/select-distinct-in-caml-query-for-list



来源:https://stackoverflow.com/questions/23381623/creating-sharepoint-view-with-distinct-column-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!