Possible if user change of parameter result in a second parameter change?

Posted by: joshuadmatthews on 24 July 2023, 1:04 am EST

    • Post Options:
    • Link

    Posted 24 July 2023, 1:04 am EST

    I have custom paging setup in my report with parameters like PageNumber and PageSize

    I would like to reset value of PageNumber to 1 if user changed PageSize.

    Is this possible?

  • Posted 25 July 2023, 4:01 pm EST

    Hello,

    Unfortunately, it is not possible to change a parameter value based on the value of a second parameter. However, you can filter out the values for your second parameter based on your first parameter if they belong to the same dataset.

    You can learn more about the same here Cascading Parameter.

    Regards,

    Anand

  • Posted 26 July 2023, 1:46 am EST

    Is there no way I can detect a parameter change externally and reload the report with new parameter values from there?

  • Posted 26 July 2023, 3:14 pm EST

    Hi Joshua,

    Unfortunately, it is not possible to achieve this within ActiveReportsJS Viewer.

    However, a different way to achieve your use requirement could be by creating a custom parameter panel as per the requirement separate from the Viewer.

    Keeping the parameters hidden you can pass values from your custom parameter panel to your report through code behind and preview it in the viewer.

    You may refer to Setting Parameter Values sample to learn more about how you can pass your parameters from using a Custom Parameter panel to your report.

    Regards,

    Anand

Need extra support?

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

Learn More

Forum Channels