SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to Add a subreport in a parent report


How to Add a subreport in a parent report

Author
Message
IAK
IAK
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 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
Cody Konior
Cody Konior
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1069 Visits: 1110
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.
IAK
IAK
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 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...
DarthBurrito
DarthBurrito
SSC Veteran
SSC Veteran (287 reputation)SSC Veteran (287 reputation)SSC Veteran (287 reputation)SSC Veteran (287 reputation)SSC Veteran (287 reputation)SSC Veteran (287 reputation)SSC Veteran (287 reputation)SSC Veteran (287 reputation)

Group: General Forum Members
Points: 287 Visits: 365
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.
Cody Konior
Cody Konior
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1069 Visits: 1110
Me too, I've done the same. I don't get why he's trying to do it his way though.
IAK
IAK
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 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
challenge_lover
challenge_lover
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search