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

Repeating Subreport

3 Answers 307 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 25 Feb 2019, 06:03 PM
I am trying to create a detail section that repeats a subreport and not sure how to accomplish this.  I have a datasource that returns a list of SalesOrder numbers and I would like a subreport for each number to repeat back to back.  I have been struggling to figure out how this might be implemented.  Can I please get some advise?

3 Answers, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 27 Feb 2019, 01:53 PM
Not possible?
0
Accepted
Todor
Telerik team
answered on 28 Feb 2019, 12:16 PM
Hello Paul,

The detail section of the report will be rendered once for each record in the Report DataSource. Hence, what you need to do is:

 - assign the data source that returns SalesOrder numbers to the Report
 - place the SubReport in the detail section of the Report and
         - set its ReportSource to point to the corresponding subreport that has Report Parameter for Sales Order Number to filter its data based on the number
         - pass the current SalesOrder number (e.g. Fields.SalesOrderNumber) as a value for the Report Parameter of the subreport

Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Paul
Top achievements
Rank 1
answered on 28 Feb 2019, 05:41 PM

I found this documentation which gave me a good idea of what I needed to do.

https://docs.telerik.com/reporting/designing-reports-master-detail

Thanks

Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Todor
Telerik team
Share this question
or