2012-08-13 54 views
2

客户正在尝试使用Report Builder 3.0针对SharePoint列表构建报表。他正在尝试将项目包含在子文件夹中。例如。通过使用CAML(即在此上下文中,SharePoint的查询语言),您可以通过指定<ViewAttributes Scope=”Recursive”/>来完成此操作:结果集包含子文件夹中的项目。SSRS:如何根据SharePoint列表创建报表时指定ViewAttributes

那么,如何在报告中指定相同的东西呢?

<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> 

但没有运气(还)。

指针,赞赏。提前致谢。

回答

1

找到的东西......

<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> 

    <Parameter Name="queryOptions" Type="xml">  
    <DefaultValue> 
    <QueryOptions> 
     <ViewAttributes Scope="Recursive" /> 
    </QueryOptions> 
    </DefaultValue> 
    </Parameter> 

      </Parameters> 
     </Method> 
     <ElementPath IgnoreNamespaces="True">*</ElementPath> 
</Query> 
相关问题