ActionInteraction

Stimulsoft Reports.WEB discussion
Post Reply
rumblecow
Posts: 33
Joined: Fri Nov 08, 2013 3:47 pm

ActionInteraction

Post 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);
        }
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: ActionInteraction

Post 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.
rumblecow
Posts: 33
Joined: Fri Nov 08, 2013 3:47 pm

Re: ActionInteraction

Post 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.
rumblecow
Posts: 33
Joined: Fri Nov 08, 2013 3:47 pm

Re: ActionInteraction

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ActionInteraction

Post by Alex K. »

Hello,

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

Thank you.
Post Reply