Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

VS2010 Reporting

Posted on 2013-05-20
3
384 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
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.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

856 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