【发布时间】:2012-08-13 12:55:11
【问题描述】:
客户正尝试使用 Report Builder 3.0 针对 SharePoint 列表构建报告。他正在尝试将项目包含在子文件夹中。例如。通过使用 CAML(即在此上下文中,SharePoint 的查询语言),您可以通过指定 <ViewAttributes Scope=”Recursive”/> 来完成此操作:结果集包含子文件夹中的项目。
那么,如何在报告中指定相同的内容?我找不到正确的语法来做到这一点,也没有直接查询列表:
<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>testlist</ListName>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu" />
<FieldRef Name="Author" />
</ViewFields>
</RSSharePointList>
也不是列表网络服务 (lists.asmx):
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>testlist</DefaultValue>
</Parameter>
<Parameter Name="rowLimit">
<DefaultValue>1000</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="True">*</ElementPath>
</Query>
试图将其作为查询的参数插入,例如
<Parameter Name="viewAttributes">
<DefaultValue><ViewAttributes Scope="Recursive"/></DefaultValue>
</Parameter>
但没有运气(还)。
指针,感谢。提前致谢。
【问题讨论】:
标签: sharepoint-2010 reporting-services reportbuilder