Solved

VS2010 Reporting

Posted on 2013-05-20
3
372 Views
Last Modified: 2013-12-24
Hi,

I'm having a hard time creating a master-detail report in VS2010. I have the following:
1x Master report for my transaction header info
1x dataset for my master report (with 1x Tableadapter to the transaction header table - no relationships)
1x Subreport for my transaction detail
1x dataset for my subreport (1x tableadapter to transaction detail - no relationships)
1x reportviewer
2x objectdatasources (one for each tableadapter)

My problem is the parameters I've set up don't seem to be filtering any data when I click to view the detail of a transaction. Can someone maybe explain to me in detail how subparameters get passed to an objectdatasource to filter data? Do I need to include a where clause in my select statement?

Here is the report I've created so far:
faulty-report.jpg
0
Comment
Question by:LIBRALEX
  • 2
3 Comments
 
LVL 4

Expert Comment

by:caltain
ID: 39189031
Yes, you do need to use a where clause in your select statement. Conceptually speaking, the select statement asks to be provided with an entire table or tables. The where clause is what allows you to narrow down the result to the specific records of interest. Let me know if you find that you're still having a problem.

Cheers!
Caltain
0
 

Accepted Solution

by:
LIBRALEX earned 0 total points
ID: 39309506
Looks like the parameters were not completely set up. This needs to be done in:
1) The Report-data section of the subreport (From the top menu click view->report data)
2) In the Filters tab on tablix properties of the subreport (right-click the row->tablix properties)
3) In subreport properties on the parameters tab of the master report (right-click the subreport on the master report->subreport properties)

Thanks all
0
 

Author Closing Comment

by:LIBRALEX
ID: 39323065
Eventually figured it out
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now