Page 1 of 1

Cannot read property 'sti_as' of null

Posted: Mon May 13, 2019 2:18 am
by trcadmin
Hi,

I encounter error as below the sti_as value is null when I createNewDashboard().



TypeError: Cannot read property 'sti_as' of null
Function.ct.createNewDashboard
http://localhost:3000/js/stimulsoft/sti ... 349:185195
(anonymous function)
http://localhost:3000/static/js/105.chunk.js:57:60
54 |
55 | setTimeout(function () {
56 | // Create a new dashboard instance
> 57 | var dashboard = window.Stimulsoft.Report.StiReport.createNewDashboard(); // Load dashboard from JSON object
| ^ 58 |
59 | dashboard.load(dashboardObject); // Assign the dashboard to the viewer
60 |

Re: Cannot read property 'sti_as' of null

Posted: Mon May 13, 2019 6:30 am
by Lech Kulikowski
Hello,

Please check the following samples:
https://github.com/stimulsoft/Samples-Dashboards-JS

Thank you.