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
AjaxWithCache WebViewer clear cache
Re: AjaxWithCache WebViewer clear cache
Hello,
Please try to use the following code:
Thank you.
Please try to use the following code:
Code: Select all
StiWebViewer1.ResetReport();
StiWebViewer1.Report = report;
Re: AjaxWithCache WebViewer clear cache
Thanx. It works.
Re: AjaxWithCache WebViewer clear cache
Hello,
Thank you for letting us know about this!
Thank you for letting us know about this!
-
- Posts: 2
- Joined: Wed May 02, 2018 3:44 pm
Re: AjaxWithCache WebViewer clear cache
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;
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;
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: AjaxWithCache WebViewer clear cache
Hello,
Thank you for the information.
Thank you for the information.