Page 1 of 1

AjaxWithCache WebViewer clear cache

Posted: Thu Nov 14, 2013 2:06 pm
by keris
How can I clear the cache when using rendermode AjaxWithCache.
Assigning a new report to the Viewer seems to be not sufficent...
Thanx in advance
Peter

Re: AjaxWithCache WebViewer clear cache

Posted: Fri Nov 15, 2013 11:11 am
by Alex K.
Hello,

Please try to use the following code:

Code: Select all

StiWebViewer1.ResetReport();
StiWebViewer1.Report = report;
Thank you.

Re: AjaxWithCache WebViewer clear cache

Posted: Tue Dec 10, 2013 2:31 pm
by keris
Thanx. It works.

Re: AjaxWithCache WebViewer clear cache

Posted: Wed Dec 11, 2013 2:49 am
by Andrew
Hello,

Thank you for letting us know about this!

Re: AjaxWithCache WebViewer clear cache

Posted: Wed May 02, 2018 4:18 pm
by niranjan Murthy
Hi,

Here is the Solution:

StiWebViewer.ResetReport();
StiWebViewer.Report = report;

===================================

Complete Code is here:
StiReport report = new StiReport();
StiWebViewer3.ResetReport();
report.Reset();

report.Dictionary.DataStore.Clear();
report.Dictionary.Databases.Clear();
report.Dictionary.DataSources.Clear();
report.BusinessObjectsStore.Clear();

report.RegData();

report.Load(Server.MapPath(""));
report.Compile();
report.CompiledReport.DataSources["Sp_Order_Tax_Report"].Parameters["@Test"].ParameterValue = 1;

report.Dictionary.Synchronize();
report.InvokeRefreshViewer();
report.Render();
StiWebViewer.Report = report;

Re: AjaxWithCache WebViewer clear cache

Posted: Fri May 04, 2018 8:01 am
by Lech Kulikowski
Hello,

Thank you for the information.