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)
 Subreport not filtering records
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sqlbug
Posting Yak Master

Canada
197 Posts

Posted - 11/26/2012 :  17:35:59  Show Profile  Reply with Quote
I have this subreport in the following environment:
1) Report is hosted on a .NET page (runs on client).
2) In the aspx page, there's one ReportViewer with two separate datsources, because subreport uses a different stored procedure.
3) The stored procedure for subreport does not take any parameters, but
4) The subreport has one parameter defined in the properties - which has its value as the ID field returned by the dataset. So I'm expecting the records returned by the stored procedure to be filtered by the parameter defined in subreports properties.

Problem: Subreports get all the data without filtering.

Any ideas what I'm missing?
Thanks,

waseemullah
Starting Member

1 Posts

Posted - 11/27/2012 :  18:18:47  Show Profile  Reply with Quote
see tablix properties of subreport.rdlc
select filter
Click Add to add a filter
In expression select the field that you want to filter
choose operator =
in value enter the subreport parameter
thats all

Waseem
Go to Top of Page
  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