Controller and Action reversed on ViewerEvent callback

Stimulsoft Reports.WEB discussion
Post Reply
David H
Posts: 1
Joined: Thu Nov 07, 2019 2:19 am

Controller and Action reversed on ViewerEvent callback

Post by David H »

Hello,

Asp.Net Core 3.0 application with Stimulsoft.Reports.Web.NetCore 2019.4.1

The callback to ViewerEvents from StiNetCoreViewer component appears to me to have reversed the action and controller in the URL.

The Initial get from the browser is to "/Reports/index" and seems to work fine.
The generated Javascript then initiates a GET to:

"/ViewerEvent/Reports?stiweb_compone...".

It looks to me like it should be:

"/Reports/ViewerEvent?stiweb_compone....".

Might I have something mis-configured?

Thank you.
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Controller and Action reversed on ViewerEvent callback

Post by Lech Kulikowski »

Hello,

The full supporting of the NET Core 3.0 will be available in the next release build.

Thank you.
joadan
Posts: 5
Joined: Mon Nov 04, 2019 9:38 am

Re: Controller and Action reversed on ViewerEvent callback

Post by joadan »

Hi

I was able to workaround this by setting the RouteTemplate

Code: Select all

@Html.StiNetCoreViewer(new StiNetCoreViewerOptions()
{
    Server =
    {
        RouteTemplate = "/Viewer/{action}"
        
    },
           Actions =
           {
               GetReport = "GetReport",
               ViewerEvent = "ViewerEvent"
           }
});
Regards Joakim
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Controller and Action reversed on ViewerEvent callback

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply