This is a migrated thread and some comments may be shown as answers.

How to pass values between report and subreport?

4 Answers 1089 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raul
Top achievements
Rank 1
Raul asked on 06 Jan 2009, 11:10 AM
Hi all,

I have a report that displaies main categories information and their subcategories.
When I show report to 1 main category no problem. I send main category ID to report constructor and get data of main category and its subcats,
but when I want to show all main categories, all subcats appears to every main cat.
For ex I have 3 main cats:
1- clothes and its subcats are (mens clothes,women clothes)
2- shoes and its subcats are (childeren, girls)

I have designed a report shows main cat info such as name and description and in this report another subreport list all subcats for this category.
When I call page to show this report and send category ID to page to select only 1 category no  problem but when I show all main cats it shows main cat info and all subcats not only this main category subcats.

So any solution to pass value from main report to its subreport in the current page??

Regards

4 Answers, 1 is accepted

Sort by
0
Raul
Top achievements
Rank 1
answered on 07 Jan 2009, 11:14 AM
Any one can help??
I have asked akot of posts but no reply
0
Ibrahim Imam
Top achievements
Rank 1
answered on 07 Jan 2009, 11:37 AM
hello

i think what you want to do is define a parameter for the subreport in your master report and then pass the ID of your main cat to the subreport. in the subreport you also define the parameter and filter for that id.
also check out the subreport section in the documentation because i think that shows this behaviour.

regards
0
Adeel Kamal
Top achievements
Rank 1
answered on 13 Jan 2013, 10:12 AM
I have defined a parameter for the subreport in my master report but how can I get that parameter in subreport. Any good way to get that parameter?? Please help me outt!
0
Steve
Telerik team
answered on 15 Jan 2013, 03:05 PM
Hi Adeel,

The following help articles should help you:

Kind regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Raul
Top achievements
Rank 1
Answers by
Raul
Top achievements
Rank 1
Ibrahim Imam
Top achievements
Rank 1
Adeel Kamal
Top achievements
Rank 1
Steve
Telerik team
Share this question
or