Set AR 11 report parameters in AR 16

Posted by: pooja.srivastava on 31 May 2022, 5:37 am EST

    • Post Options:
    • Link

    Posted 31 May 2022, 5:37 am EST

    Hi,

    I am upgrading Active reports 11 to version 16 and I am stuck at setting the report parameters value.

    In AR11, I used PageDocument parameters to set CurrentValue using the parameter name. How do I achieve the same in AR16?

     args.Report.Parameters["getLatestDataPeriodDate"].CurrentValue = "";
    ``` where args is LocateDataSourceEventArgs.
    
    I dont see any Parameter member/property which takes a name. 
    Please help.
  • Posted 2 June 2022, 9:16 am EST

    Hi Pooja,

    I have asked the development team for information on this case. I will get back to you once I have any information from them.

    Regards,

    Akshay

  • Posted 3 June 2022, 7:53 am EST

    Hello Pooja,

    If you want to assign ReportParameters in your report then what you do this by directly assign value to pageReport.PageDocument.Parameters[0].CurrentValue outside the LocateDataSource event. You can get the value of ReportParameter in the LocateDataSource event to send filtered data back to the report using args.Data however setting the value in the LocateDataSource event will not work.

    If you working with DrillThrough reports you can get parent report’s parameter value in LocateDataSource event from args.Parameter[ ] property

    If this does not resolve your issue then please provide us with a sample report with dummy data so we can provide you with a solution accordingly.

    Regards,

    Akshay

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels