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
Connect Dashboard JS to a .Net Api
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: Connect Dashboard JS to a .Net Api
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.
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.
Re: Connect Dashboard JS to a .Net Api
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?
So far, we managed to make this work using ASP MVC, but we are struggling to do the same thing with Angular.
Thank you.
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
}
})
Thank you.
Re: Connect Dashboard JS to a .Net Api
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.
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.