Repeating Subreport

4 posts, 1 answers
  1. Paul
    Paul avatar
    13 posts
    Member since:
    Oct 2011

    Posted 25 Feb Link to this post

    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?
  2. Paul
    Paul avatar
    13 posts
    Member since:
    Oct 2011

    Posted 27 Feb in reply to Paul Link to this post

    Not possible?
  3. Answer
    Todor
    Admin
    Todor avatar
    267 posts

    Posted 28 Feb Link to this post

    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
  4. Paul
    Paul avatar
    13 posts
    Member since:
    Oct 2011

    Posted 28 Feb Link to this post

    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

Back to Top