Adding component to an existing dashboard

Stimulsoft Dashboards.WEB discussion
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Adding component to an existing dashboard

Post by fgauthier »

Hi guys
I have an existing dashboard (with a dashboard, datasource and a variable)
I want to add component in code but i don't know how to get the dashboard from the XML part of the file, since the component need the page and the parent to be shown.
I have attached the file. Can you look at it and tell me how to do that please?
Attachments
TDBTest.mrt
(10.21 KiB) Downloaded 502 times
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: Adding component to an existing dashboard

Post by Lech Kulikowski »

Hello,

Sorry, we did not exactly understand your question. Could you explain your issue in more detail?

Thank you.
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Adding component to an existing dashboard

Post by fgauthier »

Please can you take a look à the attached file. I tryptophane to add à gage in code but it doesn't appear when i run the report. Can you take a look at it and tell me whats wrong?
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: Adding component to an existing dashboard

Post by Lech Kulikowski »

Hello,

It is not possible to add components in the code in dashboards.

For dashboards only Interpretation mode is available.

Thank you.
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Adding component to an existing dashboard

Post by fgauthier »

Is there an exemple of what is possible to do?
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Adding component to an existing dashboard

Post by fgauthier »

Is it possible to connect to a DB in script?
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: Adding component to an existing dashboard

Post by Max Shamanov »

Hello,

Pelase check the following link with examples:
https://github.com/stimulsoft/Samples-D ... SP.NET-MVC
Is it possible to connect to a DB in script?
Could you explain your issue in more detail?

Thank you..
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Adding component to an existing dashboard

Post by fgauthier »

Hi Max

Well, actually i changed my strategy. I have a dashboard with all the components i need in place. Now i want to customize them with values from the DB (Ex: Setting the maximum value of a gauge). Thats why i need to connect to my SQL server DB and get some datas from there.
I,ve tried many solution from forum, documentations and even ChatGPT but i still can't get my datas
Anyone can provide me a working exemple?
Just to be more clear, i'm trying to do this in the Script section of the mrt file. The report is loaded, i have access to the components. The only problem resides in getting access to the DB :(
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: Adding component to an existing dashboard

Post by Lech Kulikowski »

Hello,

Scripts in the dashboard are not supported. For dashboards only Interpretation mode is available.

Thank you.
fgauthier
Posts: 12
Joined: Thu Jul 11, 2024 9:08 am

Re: Adding component to an existing dashboard

Post by fgauthier »

What do you mean by interpretation mode? Do you have exemple of what can be done using interpretation?
Post Reply