calling GetReportSnapshotResult OUTSIDE of getResultSnapshot

Stimulsoft Reports.WEB discussion
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Post by Vladimir »

Hello,

Please specify you sent parameters are passed to the "GetReportSnapshot" action? In this action, the "mvcviewerid", "reportguid", "servercachemode" and others parameters must be present, which are passed to AJAX request from the MvcViewer.

Thank you.
mzwigl
Posts: 5
Joined: Fri Nov 22, 2013 12:07 pm
Location: Austria

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Post by mzwigl »

Ok.

Explicitly I am not passing them at all. I am using the "MvcBusinessObjects (Razor)" project as a reference.
So what I found out, that I have been missing "RenderMvcViewerScripts", which solved my problem with the Http-GET.
But still I am not sure how to handle the report, with the POST request.

M
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Post by Vladimir »

Hello,

Please explain the problem in more detail.
Viewer requests a report or page of the report using a GET request.

Thank you.
mzwigl
Posts: 5
Joined: Fri Nov 22, 2013 12:07 pm
Location: Austria

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Post by mzwigl »

I am just having trouble to understand fully the lifecycle with the reporting.

Why is

Code: Select all

@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {
                Theme = StiTheme.Office2010,
                ActionGetReportSnapshot = "SimpleReportGo",
then calling in my Post-Request

Code: Select all

       
        public ActionResult SimpleReportGo()
        {
            return RedirectToAction("Statistics", "Reporting");
        }

        [HttpPost]
        public ActionResult SimpleReportGo(String simpleReportSince) {
        ....
        }
And why then does it render correct the first time, but throws the mentioned Exception when being called a second time (submit)?

Thx. M.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Post by Vladimir »

Hello,

If you use mode with cache, ActionGetReportSnapshot action will be called only once. In further work the viewer (change the pages, zoom) ActionViewerEvent action will be called. If caching is disabled, then, for each action, the ActionGetReportSnapshot action will be called. Maybe that's the problem.

Thank you.
Post Reply