Thanks in advance
5 Answers, 1 is accepted
Check out the respective How-To topic from our documentation that covers this scenario: How-To: Creating Master-Detail Reports Using SubReports. In the SqlDataSource of the subreport, you set the Value of the datasource parameter to equal the report parameter value passed from the main report.
Kind regards,
Steve
the Telerik team
FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM PST for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. You may even win a free Telerik Ultimate Collection license! Register today >>
i got 1 more question i have 1 main report with 2 sub reports, in my main report i don't have any data sources, when i assigned the parameter values to main report from UI, but when i debug the sub report it took the design time parameter values, didn't take the current values, so how to pass the current values to subreports
If you have set the master-detail relation like in the help article, it would use the new report parameter value (refer to Invoice demo report). If it uses the default value, it means that it works with the definition object instead of the processing, which can go wrong if you do it with code. See Using Report Parameters programmatically help article for a code snippet of proper usage.
All the best,
Steve
the Telerik team
FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM PST for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. You may even win a free Telerik Ultimate Collection license! Register today >>
A report can be bound to a single data source only, so you cannot have group section and detail section with different data source, unless you use other Data Items inside those sections. The explanation from my previous post was not pointing to start using NeedDataSource, rather explaining that you might get the definition/initial value of the report parameter only if you're doing this programmatically. If you were using our Data Source Components rather than binding programmatically, this should not happen (refer to Invoice report as example).
Kind regards,
Steve
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >