Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: Design Studio Variables

$
0
0

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.

 

t1.PNG

 

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


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>