Updating the Values of Report Parameters from the Angular Report Viewer
This topic explains how to update the report parameters with values passed from a custom UI instead of using the report viewer's default parameters area. The report identifier and all required parameters values for it are packed in a ReportSource
object. To update the report source, the setReportSource(rs) method is used.
Pass values to report parameters from the application UI
-
Add the custom UI in your application. For example:
-
Declare the variable for the viewer and update the viewer's report source with a new parameter value:
The
setReportSource(rs)
method will automatically refresh the report with the new parameter values.