Page 2 of 2

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Posted: Tue Nov 26, 2013 6:30 am
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.

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Posted: Tue Nov 26, 2013 12:23 pm
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

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Posted: Tue Nov 26, 2013 1:59 pm
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.

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Posted: Tue Nov 26, 2013 2:17 pm
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.

Re: calling GetReportSnapshotResult OUTSIDE of getResultSnap

Posted: Thu Nov 28, 2013 2:04 pm
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.