add a data source to report

Stimulsoft Dashboards.WEB discussion
Post Reply
jk50po
Posts: 29
Joined: Wed May 27, 2020 7:28 am

add a data source to report

Post by jk50po »

Hi Stimulsoft team.
The data source I configured here is the MSSQL table model, which cannot be directly supported by the current designer, so here I am going to return the DataSet through the DAX in the background and pass it to the designer.
I am going to add a button to the data source and jump to a method in the background. I need to get the designer object and add a data source to this object in this method.
I want to ask how to get the designer object and add a data source to this object.
At present, the examples provided in the official website only include adding a new report and then adding a data source to this object or adding a data source in the PreviewReport method. No code has been found to add a data source to an existing report object.
thanks in advance
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: add a data source to report

Post by Lech Kulikowski »

Hello,

Please clarify which product, version and designer are you use?

Thank you.
jk50po
Posts: 29
Joined: Wed May 27, 2020 7:28 am

Re: add a data source to report

Post by jk50po »

I am using Stimulsoft Dashboard Web Net Core 2020.2.3
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: add a data source to report

Post by Lech Kulikowski »

Hello,

You can add a direct connection to the database in the designer or prepare, fill data to the DataSet and register it with RegData() method.

Thank you.
Post Reply