Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to Add a subreport in a parent report Expand / Collapse
Author
Message
Posted Monday, October 11, 2010 7:09 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, May 16, 2012 6:16 AM
Points: 21, Visits: 43
I wan t to display data in parent report which has column
Position and WeekDay.

the position has data : manager, Accountant
and weekDay Column shows the day position is going to start

for example if 3 manager are going to start their job on Monday then report shows


--------------- ------------------weekday
Position ----- -----------------------Mon----------Tue----------wed
manager -----------------------3 scott
---------------------------------- james
-----------------------------------david
DBA---------------------------------------------------------- ------- ----------2 ricky
------------------------------------------------------------------ ----------- Mick


the Position colum is row group and weekday column is column group '

the total number 3 and names are need to be displayed in tables for example for above record we would have one column 3 and three rows display three names .

(the total number 3 and names are coming from sub report)

Thanks
Post #1002518
Posted Tuesday, October 12, 2010 2:43 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, September 19, 2014 2:15 AM
Points: 213, Visits: 854
I couldn't understand what you were trying to do, but accessing sub report values from the parent report isn't possible.

I think what you want can be done in a different way though. Surely you can create the T-SQL query that has the counts and values you want; and then you can pass specific things down into the sub report to show them piecemeal.
Post #1002608
Posted Tuesday, October 12, 2010 4:23 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, May 16, 2012 6:16 AM
Points: 21, Visits: 43
no i want to display a sub report in parent report.... the position data and weekday data is coming from main report and the names are coming from sub report...
Post #1003272
Posted Thursday, October 14, 2010 1:47 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, September 24, 2014 1:21 PM
Points: 79, Visits: 301
Here's something that I've done. I have a few Crystal reports that have subreports in them. I was trying to created an SSRS report exactly the same as the Crystal report. Well it wasnt coming out exactly as I wanted it.

I solved my issue with one report, without using any subreports in SSRS.

If both reports are using the same query, great; if not, you can always add another dataset. Here goes:

1)Insert a List object.
2)Go to the tablix reporties and group it. Choose a field that works for you.
3)Insert a Rectangle object into the List object. (This object will fill in the tablix cell. So will look like there's no object in the tablix, but there is.)
4)Create your main tablix that contains your "MainReport" and then create a new tablix that's your "SubReport."
5)After you're done creating both tablix, insert them into the Rectangle object.
6) once your insert both tablix into the Rectangle, you can pretty much free form within the Rectangle object.

You probably have to mess with the Page Break options to have it display correctly, but this worked for me for several reports. So instead of working with two reports, one thats your Main Report and the second which is the SubReport, you only have one report to deal with.
Post #1004767
Posted Thursday, October 14, 2010 7:02 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, September 19, 2014 2:15 AM
Points: 213, Visits: 854
Me too, I've done the same. I don't get why he's trying to do it his way though.
Post #1004853
Posted Thursday, October 14, 2010 10:46 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, May 16, 2012 6:16 AM
Points: 21, Visits: 43
Thanks , Actually i have found a solution .So i want to share it with you .The microsoft Dynamic CRM
is using a parameter "CRM_URL =CRM_URL should be set to the URL of Microsoft CRM. This is usually http://<crmserver>/CRMReports/viewer/drillopen.aspx."


and then set the text box action properties to

=IIf(IsNothing(Fields!opportunityid.Value), Nothing, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}?ID={1}&LogicalName={2}", Parameters!CRM_URL.Value, Fields!opportunityid.Value, "opportunity"))

The following are the two site from where i got this info...

http://technet.microsoft.com/en-us/library/aa682806.aspx

http://social.microsoft.com/Forums/en/crmdevelopment/thread/809f4786-ea56-414f-bb6e-e960cc8c6f6c
Post #1004896
Posted Thursday, August 2, 2012 1:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, May 15, 2013 12:03 AM
Points: 1, Visits: 12
DarthBurrito (10/14/2010)
Here's something that I've done. I have a few Crystal reports that have subreports in them. I was trying to created an SSRS report exactly the same as the Crystal report. Well it wasnt coming out exactly as I wanted it.

I solved my issue with one report, without using any subreports in SSRS.

If both reports are using the same query, great; if not, you can always add another dataset. Here goes:

1)Insert a List object.
2)Go to the tablix reporties and group it. Choose a field that works for you.
3)Insert a Rectangle object into the List object. (This object will fill in the tablix cell. So will look like there's no object in the tablix, but there is.)
4)Create your main tablix that contains your "MainReport" and then create a new tablix that's your "SubReport."
5)After you're done creating both tablix, insert them into the Rectangle object.
6) once your insert both tablix into the Rectangle, you can pretty much free form within the Rectangle object.

You probably have to mess with the Page Break options to have it display correctly, but this worked for me for several reports. So instead of working with two reports, one thats your Main Report and the second which is the SubReport, you only have one report to deal with.


Thanks a lot.. this solution worked for me.
Post #1338974
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse