Kinetic Dashboard: Timmer for Auto refresh

Hi,

In classic we used to be able to use .net and create a timer that refreshed the data every X minutes. Is there a way to do it in a Kinetic Dash as we have live(ish) dashboards that show stock that need updating every few minutes. (The big refresh button approach didn’t work as the userbase is used to Classic magic)

Thanks,

dashboard-timer-set and dashboard-timer-clear are the components you are looking for.
build an event that will do the refresh, put it in a dashboard-timer-set to fire it every xxx ms.

dashboard-timer-clear will clear the timer.

1 Like

Our widget selection is a bit threadbare. Did we miss an install one something? Nothing in components either.

1 Like

Sorry, i meant component not widget! My bad.

1 Like

thanks, found it! I swear that wasnt there before :sweat_smile:

2 Likes

Are you aware of any limitations for event binding? IE can we only have one thing bind to Onwindow Load? Based on your help, thanks for pointing us in the right direction, the below flow should: Show Dialogue when the Dashboard Loads, Set the Timer to call executeRefreshAll (with 5000 for 5 seconds), then show a dialogue if it was successful or one if it wasn’t.

It feels like with Kinetic that the event don’t always fire.

1 Like

you are correct, only one event can be bound to a trigger.

If you need to daisy chain more than one event, you can put the second event’s trigger as (event - event name - after)

Additionally, if you use the F12 Dev Tools Console tab, you can type ‘epDebug.setDebugStatus(true)’ and then you will see your event execution flow.

2 Likes

Replying to myself but for others on the internet.

Change the initial event to bind to (Event-> After → Form_OnLoad) the below and it works:

2 Likes

It can be a PITA with the auto converted things as you cannot change the base OnWindowLoad event that it creates?

1 Like

I’ve actually never tried to auto convert anything, always done it manually.

Typically, if you are editing a base application (not a layer) none of the events would be locked.
But, if you are editing a layer to a base, all the base events would be locked (but you can set the trigger to event - override - event name) to override from a layer.

1 Like