Bug using reportparameters in reportbook

3 posts, 1 answers
  1. Jeroen
    Jeroen avatar
    8 posts
    Member since:
    Jun 2015

    Posted 09 Sep Link to this post

    Hello,

    I'm using Q2 2015 and have the following problem.

     

    When I create a reportbook

     

    ReportBook reportBook = new ReportBook();
                    reportBook.Reports.Add(new Total());
                    reportBook.Reports[0].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                    reportBook.Reports[0].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                    reportBook.Reports[0].DataSource = paramBlock.TotalCustomers;                                                                              
                    reportBook.Reports.Add(new AfvalPercentageVervolgChecks());
                    reportBook.Reports[1].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                    reportBook.Reports[1].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                    //reportBook.Reports[1].DataSource = paramBlock.ExpectedChecks;
                    //reportBook.Reports.Add(new VervolgChecks());
                    //reportBook.Reports[2].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                    //reportBook.Reports[2].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                    //reportBook.Reports[2].DataSource = paramBlock.ExpectedChecks;
                    reportBook.Reports.Add(new BankAfval());
                    reportBook.Reports[2].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                    reportBook.Reports[2].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                    reportBook.Reports[2].DataSource = paramBlock.CollectRuns;                
                    reportBook.Reports.Add(new AfvalPercentageWeek());
                    reportBook.Reports[3].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.RecruiterDate).Value1;
                    reportBook.Reports[3].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.RecruiterDate).Value2;                
                    reportBook.Reports[3].DataSource = paramBlock.Refuse;
                    reportBook.Reports.Add(new IssuesPerMonth());
                    reportBook.Reports[4].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                    reportBook.Reports[4].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                    reportBook.Reports[4].DataSource = paramBlock.Issues;

     

    The report AfvalPercentageWeek() had different values for the reportparameters.

    However those values are not used, instead the values of the first (?) report are used.

     

    Renaming the report parameters is a work around, but I believe this to be a bug.

     

    Or is this as designed?

     

    Jeroen

  2. Answer
    Stef
    Admin
    Stef avatar
    3050 posts

    Posted 10 Sep Link to this post

    Hello Jeroen,

    Please check each report's ReportParameters collection and the settings of the individual parameters. All parameters Mergeable property must be set to false to avoid merging their values in the Report Book - Report Book Parameters.


    I hope this helps.

    Regards,
    Stef
    Telerik by Progress
    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
  3. DevCraft banner
  4. Jeroen
    Jeroen avatar
    8 posts
    Member since:
    Jun 2015

    Posted 12 Sep in reply to Stef Link to this post

    Thank you,

     

    I overlooked this option.

     

    Jeroen

Back to Top