客户正在尝试使用 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>
也不是列表 Web 服务 (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>
但没有运气(还)。
指点,赞赏。提前致谢。