Hello Alex,
I think I created a small code to overcome this. Of course it needs to be adapted to your needs, but I have a proven example which has an InfoChart as hidden on first start of the dashboard, and for further loadings it will stay visible.
I have created a global script function which will be called in the OnStartup event.
/* get all Bookmarks */
var bookmarks_old = Bookmark.getAllBookmarks();
if (bookmarks_old.length == 0) {
Bookmark.saveBookmark("test");
DROPDOWN_1.removeAllItems();
var bookmarks_new = Bookmark.getAllBookmarks();
bookmarks_new.forEach(function(element, index)
{
DROPDOWN_1.addItem(element.name, element.text);
});
} else {
INFOCHART_1.setVisible(true);
}
With this, basically you can put whatever you want in that else part Enjoy!
Best Regards,
Bogdan