Tutorial videos for Dashboards.WIN

Stimulsoft Dashboards.WIN discussion
Post Reply
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Tutorial videos for Dashboards.WIN

Post by Andrew »

We uploaded the tutorial videos for Dashboards.WIN. Please find them on YouTube at https://youtu.be/D_V8Q2m_94Y

The Playlist Contains video tutorials how to:
1. Create WinForms, .NET, ASP.NET Webform, ASP.NET MVC, and .NET Core dashboards.
2. Add Tables, Pivot Tables, Charts, Indicators, Maps (Regional Map and Online Map), Gauges, Progresses, Text, Images, Shapes, ListBoxes, Comboboxes, Date Pickers, TreeView, TreeViewBoxes on Dashboard.
3. Setup data filtering, transformation, and sorting.
4. Use Interaction of Dashboard Items.
5. Create Simple Dashboards, Dashboards with Item Groups, Social, Sales, and Stats Dashboards.
ddsmith99301
Posts: 52
Joined: Wed May 17, 2017 10:14 pm

Re: Tutorial videos for Dashboards.WIN

Post by ddsmith99301 »

Do you have any documentation for using vb.net winforms with the dashboards api? I am trying to use a function and I don't understand how to declare some of the parameters. The function is StiFunctions.AddFunction. There are 9 parameters. The last 3 I can't define.

This is the C# version
private void AddCustomFunction()
{
StiFunctions.AddFunction(
"My Category", "MySum", "description",
typeof(MyClass),
typeof(decimal),
"Calculates a sum of the specified set of values.",
new[] { typeof(object) },
new[] { "values" },
new[] { "A set of values" }).UseFullPath = false;
}

This is the VB.NET version
Private Sub AddCustomFunction()
StiFunctions.AddFunction(
"My Category",
"MySum",
"description",
GetType([MyClass]),
GetType(Decimal),
"Calculates a sum of the specified set of values.",
New () {GetType(Object)},
New () {"values"},
New () {"A set of values"}).UseFullPath = False
End Sub
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Tutorial videos for Dashboards.WIN

Post by Lech Kulikowski »

Hello,

Unfortunately, there are samples for C# only:
https://github.com/stimulsoft

Thank you.
ddsmith99301
Posts: 52
Joined: Wed May 17, 2017 10:14 pm

Re: Tutorial videos for Dashboards.WIN

Post by ddsmith99301 »

I converted the code to VB.net for the samples on github. I am trying to disable or not show the edit button or the open button in the viewer. I am running the 'Show Dashboard in the Viewer'. Here is the code (in bold) I added that I hoped would remove all the buttons and disable anything the user would have control over in the viewer. Unfortunately it does not work. What am I doing wrong???

Private Sub buttonPanel_Click(sender As Object, e As EventArgs)
If panelViewer.Controls.Count = 0 Then
ViewerControl = New StiDashboardViewerControl()
ViewerControl.Dock = DockStyle.Fill

panelViewer.Controls.Add(ViewerControl)
End If

ViewerControl.Report = GetTemplate()
ViewerControl.Report.PreviewSettings = 0
ViewerControl.Show()

End Sub
2019-05-22_1354.png
2019-05-22_1354.png (71.12 KiB) Viewed 8009 times
ddsmith99301
Posts: 52
Joined: Wed May 17, 2017 10:14 pm

Re: Tutorial videos for Dashboards.WIN

Post by ddsmith99301 »

Here is the same c# code. It doesn't work there either.

private void buttonPanel_Click(object sender, EventArgs e)
{
if (panelViewer.Controls.Count == 0)
{
ViewerControl = new StiDashboardViewerControl();
ViewerControl.Dock = DockStyle.Fill;

panelViewer.Controls.Add(ViewerControl);
}

ViewerControl.Report = GetTemplate();
ViewerControl.Report.PreviewSettings = 0;
ViewerControl.Show();

}
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Tutorial videos for Dashboards.WIN

Post by Lech Kulikowski »

Hello,

Please check the following code:

Code: Select all

var report = StiReport.CreateNewDashboard();
report.DashboardViewerSettings = StiDashboardViewerSettings.None;
Thank you.
ddsmith99301
Posts: 52
Joined: Wed May 17, 2017 10:14 pm

Re: Tutorial videos for Dashboards.WIN

Post by ddsmith99301 »

Thank you!
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Tutorial videos for Dashboards.WIN

Post by Andrew »

You are welcome!
wiki9911
Posts: 9
Joined: Tue Apr 21, 2020 2:09 pm

Re: Tutorial videos for Dashboards.WIN

Post by wiki9911 »

Hi Andrew,

I hope this finds you well.

I want to ask that in the demo project it is reading MRT file as the dashboard and also on edit we save a new MRT file. Everytime i edit the dashboard I have a new MRT file. Let suppose if the user by mistake delete the new MRT file then his all work will be lost because the system will only read the old MRT file. I think this is a problem. what do you say?

I followed this link code https://github.com/stimulsoft/Samples-D ... MVC-CSharp
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Tutorial videos for Dashboards.WIN

Post by Andrew »

Hello,

Yes, the system reads MRT both for reports and dashboards. If the customer delets the file then you lose your work.

Thank you.
Post Reply