Call twice a report without closing the popup does not refresh the report

Stimulsoft Reports.WEB discussion
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Call twice a report without closing the popup does not refresh the report

Post by jpascual »

Hi, I have a problem in IE 8 with the reports.
I build a session variable and call the popup to display the report with the contents of the session variable.
The first call is correct and the report clearly shows.

But if I don't close the popup and return to call the report shows me the above data, but the session variable has the new data.
Also, when you call back is not within the load event of the popup. Just get in the Load event if the popup is not open.
Can you help me solve this problem? Thanks.

I show a report using this call:

Code: Select all

Session("DataSet") = DataSet
Dim popupScript1 As String = "open('popup.aspx?report=XXX&date=" & txtdate.Text & "','NewWindow','top=0,left=0,width=800,height=600,status=yes,resizable=yes,scrollbars=yes');"
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "PopupScript1", popupScript1, False)
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Call twice a report without closing the popup does not refresh the report

Post by jpascual »

any solution? please
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Call twice a report without closing the popup does not refresh the report

Post by Vladimir »

Hello,

Sorry for the delay in response.
Your code is not enough to reproduce the problem. Please send us a simple test project which shows the error with data from the session.

Thank you.
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Call twice a report without closing the popup does not refresh the report

Post by jpascual »

Hi, I attach a sample report.
You must Change the connectionstring in the file: App_code/code.vb. The DataBase is included.

1 - In the load event has loaded a session variable with the contents of the grid. (4 rows). Press the PRINT button.
It shows a popup with the 4 records.
2 - NOT CLOSE THE POPUP. Write the text "Fernando" in TextBox1 and hit "SEARCH. " Gridview and the session variable now have two records.
3 - Press the PRINT button and the report is charging but does not show new content. Displays the previous report. Also not within the page load event Informes.aspx.
If you press Ctrl + F5 in the popup (Informes.aspx) does show the new content
Attachments
1038.TestReloadReport.rar
(213.34 KiB) Downloaded 211 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Call twice a report without closing the popup does not refresh the report

Post by Vladimir »

Hello,

We could not reproduce the error, by pressing on the Print button the page refreshes automatically, the Page_Load event is always invoked and the value from the session is restored correctly. For testing, we used Visual Studio 2005.

Thank you.
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Call twice a report without closing the popup does not refresh the report

Post by jpascual »

When you click the Print button a second time, after filtering the search, is launching the page_Load event ?
I when I do not throw the load event and do not reload the page.
I use VisualStudio 2008, thanks.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Call twice a report without closing the popup does not refresh the report

Post by Vladimir »

Hello,

We have tested your application in Visual Studio 2008 using IE9 and Firefox 3.6, the Page_Load event is called correctly by pressing the Print button.

Thank you.
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Call twice a report without closing the popup does not refresh the report

Post by jpascual »

Hello, the second time you call to report without closing the popup, the page calls the Page_Load event?
In my case, recharge the popup but the content does not, displays the contents of the previous search.
I attached a video where you can see that if I press the Print button displays the popup with the results.
Then do not close the popup.
I filter the search by the name "Fernando" and click the Print button.
Then the popup is charged but not within the load event and the content it displays is that of the previous search.

I attached a video so you can see my case and check if the same thing you tried. Thank you very much.
Attachments
1044.TestVideoSample.rar
(504.67 KiB) Downloaded 222 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Call twice a report without closing the popup does not refresh the report

Post by Vladimir »

Hello,

We have done the same steps that are displayed on the video and could not repeat the error (please see attached video). Perhaps, the error depends on the browser's cache. Please try temporarily disabling the cache in your browser, or substituted in the URL of a random parameter, for example:

Code: Select all

Informes.aspx?Report=Test&uid=123456
uid - random number.


Thank you.

Attachments
1046.PruebaReload.zip
(1.6 MiB) Downloaded 245 times
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Call twice a report without closing the popup does not refresh the report

Post by jpascual »

That's the problem, I've tried passing a parameter with a random number and it works.
It's a little cumbersome because I must add this parameter in all our application but it will solve the problem of customers, thank you very much.
A greeting.
Post Reply