Clearing HTML Report Viewer Before Loading Same Report With New Parameters

1 Answer 55 Views
Report Parameters Report Viewer - HTML5
Alexandre
Top achievements
Rank 2
Iron
Iron
Iron
Alexandre asked on 20 Jul 2023, 11:00 AM

Hello,

I have a page where I load the same report, but with different parameter values each time. What happens is that after the first loading, the Report is not considering the new parameters and keeps bringing the report with the first parameter.

I have tried removing and adding the Report DIV programatically to see if it would clear the Report Viewer contents, but after doing that the Report stops loading, although the HTML DIV Structure is the same as the original.

Any ideias?

Regards,

Alexandre

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 25 Jul 2023, 07:14 AM

Hello Alexandre,

If I understood correctly, you need to change the parameters passed to the report. You may do this through the method reportSource(rs).

Note that the options of the Html5 Viewer are respected only on the first load of the viewer page and any modification afterwards won't work.

Regarding the report content, it gets requested from the REST Service and loaded in the corresponding <div> element, Report Preview Area. Modifying the current HTML of the viewer page cannot affect the requests to the service, hence the returned report content.

Regards,
Todor
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
Report Parameters Report Viewer - HTML5
Asked by
Alexandre
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Todor
Telerik team
Share this question
or