2018.2.2: WebViewer Interaction - Quirk
Posted: Wed Jun 06, 2018 8:00 am
Hi there,
What is the correct way to properly process the interaction parameters and assign a new report to the webViewer?
I have Stimulsoft.Web 2018.2.2, ASP .NET WebForms --> StiWebViewer control. There are a couple of filter parameters appearing at the in the viewer. When the user changes these, I want the report to send me the updated filters and then I would dynamically fetch new data for the report and show on the viewer.
Now, I am using the following method to handle this. The problem is, the report gets rendered twice (confirmed by monitoring its onrendering event), so takes longer to appear on the viewer, twice the amount of time. But the filtered report then shows up properly on the viewer. Is this the correct way to supply the new report?
The only other method I have is the GetReport method which gets the compiled report and attaches it to the StiWebViewer1's Report property.
protected void StiWebViewer1_Interaction(object sender, StiReportDataEventArgs e)
{
if (e.Action == StiAction.Variables)
{
// The values of the variables passed from the client
Hashtable variables = e.RequestParams.Interaction.Variables;
var r = Business.GetCompiledReport(variables);
StiWebViewer1.Report = r;
}
}
What is the correct way to properly process the interaction parameters and assign a new report to the webViewer?
I have Stimulsoft.Web 2018.2.2, ASP .NET WebForms --> StiWebViewer control. There are a couple of filter parameters appearing at the in the viewer. When the user changes these, I want the report to send me the updated filters and then I would dynamically fetch new data for the report and show on the viewer.
Now, I am using the following method to handle this. The problem is, the report gets rendered twice (confirmed by monitoring its onrendering event), so takes longer to appear on the viewer, twice the amount of time. But the filtered report then shows up properly on the viewer. Is this the correct way to supply the new report?
The only other method I have is the GetReport method which gets the compiled report and attaches it to the StiWebViewer1's Report property.
protected void StiWebViewer1_Interaction(object sender, StiReportDataEventArgs e)
{
if (e.Action == StiAction.Variables)
{
// The values of the variables passed from the client
Hashtable variables = e.RequestParams.Interaction.Variables;
var r = Business.GetCompiledReport(variables);
StiWebViewer1.Report = r;
}
}