Connect Dashboard JS to a .Net Api

Stimulsoft Dashboards.JS discussion
Post Reply
EricB85
Posts: 3
Joined: Mon Jan 27, 2020 1:29 pm

Connect Dashboard JS to a .Net Api

Post by EricB85 »

Hello,

I try to connect Stimulsoft Dashboard JS to a .net core api.
By the past, I successfully did it for reports but all my attempts to connect my dashboard with the api failed.

My scenario is that I have a datasource dynamically setted that map to tables in a sql database (but through an api endpoint). The user can then create a dashboard with the tables of his choosing.
I tried to find documentation but nothing for my case (even on your github). Do you have a complete example that could help me?

Regards,

Eric
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: Connect Dashboard JS to a .Net Api

Post by Lech Kulikowski »

Hello,

Please check samples here:
https://github.com/stimulsoft/Samples-D ... MVC-CSharp
https://github.com/stimulsoft/Samples-Dashboards-JS

> My scenario is that I have a datasource dynamically setted that map to tables in a sql database (but through an api endpoint). The user can then create a dashboard with the tables of his choosing.

You can add a connection to the database directly in the dashboard or prepare, fill data as DataSet and register it with RegData() method from your code.

Thank you.
Arjune
Posts: 20
Joined: Mon Jan 28, 2019 9:26 am

Re: Connect Dashboard JS to a .Net Api

Post by Arjune »

Hello Lech,

I checked your samples but they do not show how Stimulsoft can reach a .NET Core Api from an Angular website, because in those samples there are no interactions with any database.
To put this in other words, could you please tell us how we could have the Angular equivalent of the sample code below which achieves the same thing in ASP MVC?

Code: Select all

@Html.StiNetCoreDesigner(new StiNetCoreDesignerOptions()
{
    Actions =
    {
        GetReport = "GetReport",
        SaveReport = "SaveReport",
        DesignerEvent = "DesignerEvent",
        Exit = "ExitDesigner"
    },
    FileMenu =
    {
        ShowExit = true
    }
})
So far, we managed to make this work using ASP MVC, but we are struggling to do the same thing with Angular.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Connect Dashboard JS to a .Net Api

Post by HighAley »

Hello,

At this moment we have this sample only.
https://github.com/stimulsoft/Samples-N ... %20Angular

We are working on our new product -- Stimulsoft Angular.
https://www.stimulsoft.com/en/products/reports-angular

Thank you.
Post Reply