This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

Refresh all the tabs of Single Page Application

3468174
3468174 Member Posts: 2
edited Feb 28, 2018 5:28AM in Oracle JET

Hi All,

We have a requirement where we need to refresh all the contents in the toolbar every 5 minutes and if there are any kind of issue in those we have to change the color of content to Red..

We have developed a Single Page application with 4 tabs (Transaction, Bulk Plan, Statistics, Scalability Overview),

Each tab is having multiple graphs/charts/tables which needs to be refreshed every 5 minutes. If any of the value crosses a particular threshold then we have to change the color of tab/tab-font.

Q1: How can we refresh all the tabs even if only the 1st tab is open ?

Q2: How to change the color of tab/tab-font if it has crossed the threshold ?

Dashboard.JPG

Tagged:

Answers

  • Duncan Mills-Oracle
    Duncan Mills-Oracle Member Posts: 4,079 Employee
    edited Feb 28, 2018 5:28AM

    If the application can handle it (in terms of transactions) why not just use http-equiv refresh in your index page to refresh the whole page at the required interval.  If your assets are correctly marked from a caching perspective this will work just fine.

    If you want a more in-place type of update then the approach will depend totally on how you have implemented the SPA, this is a just a JavaScript  Knockout coding issue - not a JET specific thing though.