Page 1 of 1

ActionInteraction

Posted: Thu Jan 23, 2014 6:58 pm
by rumblecow
I've defined a mobileviewer as follows with the actions in the controller below. The GetReportSnapshot action is firing and the report is loading. However, when clicking the 'Next' and 'Previous' buttons nothing is happening. What am I missing?

Code: Select all

<table>
    <tr>
        <td>@Html.Stimulsoft().StiMvcMobileViewer(new StiMvcMobileViewerOptions()
{
    ActionGetReportSnapshot = "GetReportSnapshot",
    ActionViewerEvent = "ViewerEvent",
    ActionPrintReport = "PrintReport",
    ActionExportReport = "ExportReport",
    ActionInteraction = "Interaction"
    
})</td>
    </tr>
</table>

Code: Select all

        public ActionResult ViewerEvent()
        {
            return StiMvcMobileViewer.ViewerEventResult(this.HttpContext);
        }

        public ActionResult PrintReport()
        {
            return StiMvcMobileViewer.PrintReportResult(this.HttpContext);
        }

        public ActionResult Interaction()
        {
            return StiMvcMobileViewer.InteractionResult(this.HttpContext);
        }

        public ActionResult Export()
        {
            return StiMvcMobileViewer.ExportReportResult(this.HttpContext);
        }

        public ActionResult GetReportSnapshot(ReportModel r)
        {
            PivotDrillDownDataSource dataObject = Session["stimulsoftdata"] as PivotDrillDownDataSource;
            if (dataObject == null) return null;

            StiReport report = Utils.LoadReport("~/Content/Reports/TransByItemClass.mrt");
            var dt = Convert.ToDateTime(dataObject[0]["Month"]);
            Stimulsoft.Report.DateTimeRange dtr = new Stimulsoft.Report.DateTimeRange(dt, dt.AddMonths(1));
            report.Dictionary.Variables.Add("Dates", dtr);
            report.Dictionary.DataSources["TransByItemClass"].Parameters["pItemClass"].Value = string.Format("\"{0}\"", dataObject[0]["ItemClass"]);
            report.Dictionary.DataSources["TransByItemClass"].Parameters["pSiteID"].Value = string.Format("\"{0}\"", dataObject[0]["SiteID"]);

            // Restore the route values collection and get the id value
            RouteValueDictionary routeValues = StiMvcMobileViewer.GetRouteValues(this.HttpContext);

            return StiMvcMobileViewer.GetReportSnapshotResult(HttpContext, report);
        }

Re: ActionInteraction

Posted: Fri Jan 24, 2014 7:25 am
by Vladimir
Hello,

Please specify, which browser are you using? Also please check which version of the product you are using? If you use the Google Chrome 32 or higher, this bug will be fixed in the next prerelease build. In other browsers Viewer should work correctly.

Thank you.

Re: ActionInteraction

Posted: Fri Jan 24, 2014 1:35 pm
by rumblecow
I'm using version 32.0.1700.76 of Chrome. It is working in Internet Explorer. Thank you.
Vladimir wrote:Hello,

Please specify, which browser are you using? Also please check which version of the product you are using? If you use the Google Chrome 32 or higher, this bug will be fixed in the next prerelease build. In other browsers Viewer should work correctly.

Thank you.

Re: ActionInteraction

Posted: Fri Jan 24, 2014 1:44 pm
by rumblecow
Will a notification be sent when the fix is available?
Vladimir wrote:Hello,

Please specify, which browser are you using? Also please check which version of the product you are using? If you use the Google Chrome 32 or higher, this bug will be fixed in the next prerelease build. In other browsers Viewer should work correctly.

Thank you.

Re: ActionInteraction

Posted: Fri Jan 24, 2014 1:55 pm
by Alex K.
Hello,

The fix will be available in the next prerelease build which will be available today.

Thank you.