(Showing Draft Content)

Setting parameter values

Using parameters is the recommended way to alter a report at runtime. End-users can specify parameter values in the viewer sidebar. However, if you want to implement a custom parameters panel or use hidden parameters, an application should set parameter values at runtime.

The open method of Report Viewer component accepts the second optional argument which is an object that can include the parameter values, for instance:

viewer.open("products.rdlx-json", {
        ReportParams: [
                Name: "CategoryId",
                Value: [1,2,3],

The Value property of ReportParams items should be an array even if the parameter has a single value.

Visit the Setting Parameter Values demo for the code samples for Angular, React, Vue and Pure JS applications.