Problem with StiMobileViewer

Stimulsoft Reports.WEB discussion
Post Reply
nodo
Posts: 7
Joined: Wed Jul 03, 2013 2:58 pm

Problem with StiMobileViewer

Post by nodo »

Hello,

We are in the process of moving our Reporting solution from Silverlight to HTML.
So we want to use the StiMobileViewer in ASP.net for that (and also the StiMobileDesigner)

We want to keep using our custom backend to generate the report data and only display them using the ASP controls.
So basically we load the report template in the viewer and then, depending on the user entered variables, the report is generated in the back end, send back to the ASP site as a packed report document and then displayed in the viewer.

The issue is, only on the third call of OnGetReportData, is the rendered report actually shown in the viewer.
So the user has to click the "Submit" button 2 times until a result is shown. :shock:
I created a simple example that demonstrates this weird behavior.

I hope someone can point me in the right direction on how to fix this issue.
Attachments
WebApplication1.zip
(130.1 KiB) Downloaded 157 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with StiMobileViewer

Post by Alex K. »

Hello,

Unfortunately, it is not a simple way for implementing this task for StiMobileViewer. We recommend using StiWebViewer.
Please try to implement your task with the StiWebViewer and let us know about the result.

Thank you.
nodo
Posts: 7
Joined: Wed Jul 03, 2013 2:58 pm

Re: Problem with StiMobileViewer

Post by nodo »

Thank you for your reply.

The reason I we StiMobileViewer instead of StiWebViewer is that we can't find a way to get the user entered variables with StiWebViewer.

The event arguments in OnGetReportData never contain the entered variables when using StiWebViewer. With StiMobileViewer at least that is working.

Any suggestions?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with StiMobileViewer

Post by HighAley »

Hello.

You could use next code to work with request from user variables in the StiWebViewer:

Code: Select all

protected void StiWebViewer1_GetReportData(object sender, StiReportDataEventArgs e)
{
    var requestParams = StiWebViewer.GetRequestParams();
    var Variable1 = requestParams.Viewer.Variables["Variable1"];
        
        ...
}
Thank you.
nodo
Posts: 7
Joined: Wed Jul 03, 2013 2:58 pm

Re: Problem with StiMobileViewer

Post by nodo »

Wow, thank you so much.

Looks like it is working now :)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with StiMobileViewer

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.
Post Reply