SSRS – Using SharePoint List Views to Filter & Sort

By default when reporting against a SP List it will use the DEFAULT View.

clip_image002

clip_image004

When you want to access the data using a Specific VIEW you need to add the following to the data source XML :

clip_image006

Create a View and pass Parameters of the View

<rssharepointlist xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <listname>HelpDesk</listname>
 <query>
 <parameters>
 <parameter name="viewName">
 <defaultvalue>All Issues</defaultvalue>
 </parameter>
 </parameters>
 </query>
 <viewfields>
 </viewfields>
 </rssharepointlist>

You need to add –> query –> parameters –> parameter name –> BEFORE the viewfields xml node.

The properties of this view are applicable to the dataset.

Also the sorting will be applicable to that dataset. 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: