Skip to Content
0

Permanent Dashboard (Desing studio application built bij Composition template)

Jul 12, 2017 at 12:19 PM

87

avatar image

Hi ,

We have provided our users the Composition template to allows them to create bookmark fragments and use these to creat their own dashboards (URL's). These url's are placed on a Zebrix NUC that is connected to a TV-screen (as a permanent dashbord)

Cosidering this post:

https://archive.sap.com/discussions/thread/3789080

What I would like to know if you think it is possible to implement a timer in dashboards that are created using the composition application.

I've implemented a timer into the composition dashboard (application with splitcell containers where fragments are dropped and where an application is saved (using above implmentation of custom.jsp file.) with no succes. The application did not refresh.

I have implemented this code code on the timer event which has an interval of 1500000.

this is the code that has been added:

TIMER.start() method in the application "On Startup" event to initiate the Timer.

var myDataSources = SPLITCELLCONTAINER_1.getDataSources();
var firstDataSource = myDataSources[0];
firstDataSource.reloadData();

Do i need any other code ??

Since the datasource is integrated in the fragments I'm wondering if i even can reset them ?

Thanks in avance

Kind

10 |10000 characters needed characters left characters exceeded

Hi Bram,

Have you tried triggering an application message in the "On Timer" event to confirm that the code in the Timer is actually being triggered?

Regards,

Mustafa.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Mustafa Bensan Jul 12, 2017 at 11:31 PM
0

Hi Bram,

Here's another thought further to my previous comment. If the requirement to execute a reloadData() is only to keep the dashboard "active" and prevent a timeout rather than actually refreshing the data, you could try adding a "dummy" data source to the main application which returns only one row and execute the reloadData() on this data source. Since this dummy data source is independent of the fragment data sources, I expect that the reloadData() method should work as desired.

Regards,

Mustafa.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Mustafa,

Thank you for your input.

I've did some testing with the timer and alerts. The timer seems to be working.

It show an alert at startup, then another one after 15000 miliseconds , which seems ok... when I do this locally.

I cannot see any alert messages when I run this on the BI plaftorm... So I assume the timer element is not working then..

I openend an application from the BIP, added some changes, saved and ran it with the option "execute on BIP". I'm assuming this is enough since my vissual changes appear when I open it on the BIP..

Kind regards

Bram

0

Hi Bram,

The alert message popup only appears in local mode and is not supported in BIP mode so what you have experienced is normal. A better test for BIP mode would be to place a Text component on your application and then in the "On Timer" event, first clear the Text component and then set the value to firstDataSource.name. This will at least confirm if a data source is actually being returned, although I expect it is, otherwise the reloadData() should have resulted in an error.

What makes you think that the reloadData() method is not working in your case? It's possible that if the underlying data has not changed, the reloadData() method is not having a noticeable effect.

Regards,

Mustafa.

1

Hi Mustafa,

I've implemented your idea to add a dummy datasource and used this in combination with the timer and reload function.

The connection stays alive. That is excluding the Zebrix NUC for the moment.

Infrasctructure will now test the same dashboard with the Zebrix in between. I will keep you posted.

Thansk again for your help! Greatly appreciated

Kind regards

Bram

1

Hi Bram,

Good to hear the solution worked for you. I'll be interested in the results with Zebrix too.

Regards,

Mustafa.

0