Updaing parameters of report2 from those chosed in report1

  • 3p
    azoccolillo3p 6 days, 15 hours ago

    I’m running an MVC HTML5 Viewer showing 3 reports. All 3 reports have the same parameters. I default the page to the first report with default parameters. If I change parameters on Report1 and then click on Report2, the parameters for Report2 come in as the default parameters. I want Report2 to pick up the parameter changes on Report1 and use them on Report2.

    Any ideas an the best way to do this? Should I set some session variables and assign then on click of the report or View Report? Then pick them up and assign them on the next report selected?


  • 187p
    AbdiasM187p 5 days, 15 hours ago

    I’m sorry there’s no direct way to get the parameter’s changed value on the client side to store and use it in Report2. The only way is to get the parameter textbox from the DOM and access its value like below:


    You could then set this as the value of the parameter in Report2 as below:

    var reportOption = {
                        id: 'Reports/Report2.rdlx',
                                name: 'Param1',
                                value : 'value'
  • 3p
    azoccolillo3p 3 days, 16 hours ago

    Is there a way to disable the report parameter and search sidebar?

    If I added my own parameter DIV I could feed each report this “universal” parameter set from the DOM in javascript load function. If I did this I don’t want the default report parameter window to be viewable.

  • 187p
    AbdiasM187p 3 days, 2 hours ago

    For Page/RDL Report, you can check the Hidden property of the Parameter and it won’t show in the Parameter pane and for SectionReport, you can set the PromptUser property to False to hide it. You can then provide the value of this parameter from the ‘universal’ parameter using the code in my previous response.

    I hope it helps clarify.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.