what ajax function to call for reloading the report viewer?
what ajax function to call for reloading the report viewer?
I have a unique requirement where I need to do auto-refresh for the mobile version of report viewer page. As I have other items in the page itself, I don't want to page reload but rather call ajax functionality to reload the viewer at a set interval. what function should I be calling to make this happen in javascript?
Re: what ajax function to call for reloading the report view
Hello,
Please specify which component you are using: MobileViewer or MvcMobileViewer?
Thank you.
Please specify which component you are using: MobileViewer or MvcMobileViewer?
Thank you.
Re: what ajax function to call for reloading the report view
Hello,
Unfortunately, at the moment there is no specific method for Mobile Viewer, we will try to prepare a solution for you. We need some time.
Thank you.
Unfortunately, at the moment there is no specific method for Mobile Viewer, we will try to prepare a solution for you. We need some time.
Thank you.
Re: what ajax function to call for reloading the report view
Thanks Vladimir. I will wait for this solution.
Re: what ajax function to call for reloading the report view
Hello.
Let us know if you will need any additional help.
Thank you.
Let us know if you will need any additional help.
Thank you.
Re: what ajax function to call for reloading the report view
I was able to call ajax refresh every 10 seconds doing some digging in codes.
Here is the code on my main page that did the trick.
May be there is a better a solution but this works great.
Here is the code on my main page that did the trick.
Code: Select all
var autorun = self.setInterval(function() {
var button = document.getElementById("StiMobileViewer1_Submit");
button.action();
}, 10000);
Re: what ajax function to call for reloading the report view
Also with slight modification in source code( StiMobileViewer.cs), I was able to make this work for reports that do not have parameters.
Cheers!!!
Cheers!!!
Re: what ajax function to call for reloading the report view
Hello.
We are very great to work with such customers.
Thank you for using our product.
We are very great to work with such customers.
Thank you for using our product.
Re: what ajax function to call for reloading the report view
Hello,
Alternatively, you can use the following code:
StiMobileViewer1 - Mobile Viewer ID.
Thank you.
Alternatively, you can use the following code:
Code: Select all
setTimeout("jsStiMobileViewer1.sendToServer('NavigationReport')", 10000);
Thank you.