Showing posts with label wizard. Show all posts
Showing posts with label wizard. Show all posts

Wednesday, March 21, 2012

Reporting Services - How to create additional details section

Hi All,

I'm using VS 2005 to build a SQL Server reporting Services report. The wizard works great and prompts me to build my results query and then select fields to group the report by.

I'm using the 3 groups as follows:

Page: Product / Model name
Group: Serial No
Details: Orders

Here's the problem. I also want to show my order lines as there is another linked table connected to my order table which holds all order line items. Classic order - line example.

How can I modify the details section to show my line items, as well as not show empty rows when no line items exist?

Thanks!

Hi.

I myself have only just started using Reporting Services, but from what I have read, I believe that if you switch to ReportDesigner in VS2005, you may be able to add a Sub Report to your Orders group. Then you could filter the data shown in the Sub Report by the ID value of the current Orders row.

Add a Report Parameter to your Orders group and set its value to the Order's ID (that links Orders and Order Lines). Add another Report Parameter to your Sub Report that get it's value from the Orders Report Parameter you just set up. Then set the Sub Report to get your Order Lines data and use a WHERE clause set to the Sub Report Report Parameter value so that the Sub Report displays just the Order Lines that match the current Orders value. The sub report will not show any data if no rows from the Order Lines table match the current Orders ID value.

The SQL Server 2005 BOL has info about using Reporting Services.

I am sure there may be other (better) ways of doing what you ask, but I hope this gives you an idea of what can be done.

HTH.

Best regards.

sql

Tuesday, February 21, 2012

Reporting Items Toolbox

I am new to reporting services. Just installed the BI Dev Studio onto my SQL 05 machine. Everything is working fine. I can via the wizard create a basic report that connect to a SQL data store, runs a query, renders etc.

My problem - the BI Studio will not give me anything active in the toolbox. If I pull up the toolbox it shows me the general tab and that's it. If I do a 'show all' on the toolbox it will show me all available tabs in VS...including the one I want 'Report Items'. However all controls in the Report Items (pointer, textbox, line, table, matrix, etc.) are grayed out. As far as I can tell this means I would have to directly change the RDL in order to customize my report. I feel like I am missing something basic here.

Thanks in advanced for any insight.

Basic to say the least...Took me a couple hours for me to decide I might need to look around and install additional components from the install disc...which made me decide to close my BI Studio....which promptly asked me if I wanted to stop debugging...which prompted me to scream.

Not sure how debug started running in the first place I would have never thought to run debug on RDL. Anyway lame post. Sorry.