Page 1 of 2
Adding component to an existing dashboard
Posted: Thu Jul 11, 2024 9:15 am
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?
Re: Adding component to an existing dashboard
Posted: Fri Jul 12, 2024 3:55 pm
by Lech Kulikowski
Hello,
Sorry, we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.
Re: Adding component to an existing dashboard
Posted: Sat Jul 13, 2024 7:12 am
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?
Re: Adding component to an existing dashboard
Posted: Mon Jul 15, 2024 7:53 pm
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.
Re: Adding component to an existing dashboard
Posted: Tue Jul 16, 2024 8:01 am
by fgauthier
Is there an exemple of what is possible to do?
Re: Adding component to an existing dashboard
Posted: Tue Jul 16, 2024 12:19 pm
by fgauthier
Is it possible to connect to a DB in script?
Re: Adding component to an existing dashboard
Posted: Tue Jul 16, 2024 1:15 pm
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..
Re: Adding component to an existing dashboard
Posted: Tue Jul 16, 2024 1:53 pm
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

Re: Adding component to an existing dashboard
Posted: Tue Jul 16, 2024 9:34 pm
by Lech Kulikowski
Hello,
Scripts in the dashboard are not supported. For dashboards only Interpretation mode is available.
Thank you.
Re: Adding component to an existing dashboard
Posted: Wed Jul 17, 2024 6:44 am
by fgauthier
What do you mean by interpretation mode? Do you have exemple of what can be done using interpretation?