SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Dynamic SharePoint <ListName> via Report Parameter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 06/28/2012 :  15:38:31  Show Profile  Reply with Quote
We are reporting against a SharePoint List that is replicated in more than 10 subsites, and would like to have the SharePoint Query element for the ListName be dynamic. Reason is, we want a single report to be used for all 10 subsites since each subsite the same list...just different data.

We would like to be able to pass the list name in the query string as a parameter so the report can be dynamic, and we won't have to have 10 exact copies of the same report. We've already figured out the subsite dynamic part which resides in the datasource portion, and that's working...it's just down to the SharePoint Query XML and the <ListName> element where we need to insert the parameter.

We have tried the following 4 ideas with our parameter @List, but we get a "List Not Found" error when trying to view the report for each scenario:

1. <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>List [@]</ListName>
<ViewFields>
...

2. <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>List {@}/ListName>
<ViewFields>
...

3. <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>@List</ListName>
<ViewFields>
...

4. <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>=Parameters!List.Value</ListName>
<ViewFields>
...
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000