cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to show a busy indicator in story while the table values load from live connection?

azm_azm
Participant
0 Likes
709

Hi,

I have created a story where I'm pulling the data from SAP source via live connection. There are multiple widgets in the story and few tables and charts are using this SAP live data source to pull the data into the story. When the story loads for the first time, there is some delay in refreshing the data for the widgets which pulls data from live data source. My requirement is to show a custom message/ busy indicator to the users until all the data in these widgets is refreshed within the story. I'm not sure if there is a specific function which tells me that the data refresh is completed from the live connection so that I can write the script accordingly.   

Anyone who has faced this similar issue or knows the workaround in this case. Their comments would be deeply appreciated.

Thanks

View Entire Topic
JBARLOW
Active Contributor

To the best of my knowledge there's no api/scripting way to flag when refresh has completed,
however if refresh times are consistent you could use a timer to hide a message

something like this in the page 'oninitialisation event'

Application.showBusyIndicator("I'm really busy right now refreshing all your wonderful data");
Timer.start(3);

In the timer on timeout, chuck this code in:    Application.hideBusyIndicator();

azm_azm
Participant
0 Likes
Thank you for your wonderful reply.