Skip to Main Content

Report refresh interval using dynamic action

Here is how you can easily set report refresh interval just using dynamic action without writing any line of JavaScript.

You need set report attribute Lazy Loading to on.

Report Lazy Loading attribute

Create dynamic action:

  • Type: Debounce
  • Time: < enter time in milliseconds how often report is refreshed, e.g. 10000 for every 10 seconds >
  • Event: After Refresh
  • Selection: Type: Region
  • Region: < select report region to refresh >

Dynamic action

Create true action

  • Action: Refresh
  • Selection Type: Triggering Element
  • Fire on Initialization: Off

Dynamic action true action

See working example.

If you don't want use report Lazy loading, you need write little bit JavaScript and define dynamic action bit differently:

  • Type: Debounce
  • Time: < enter time in milliseconds how often report is refreshed, e.g. 10000 for every 10 seconds >
  • Event: Custom
  • Custom Event: custom-event-refresh
  • Selection: Type: Region
  • Region: < select report region to refresh >

Dynamic action alternative

Create true action:

  • Action: Refresh
  • Selection Type: Triggering Element
  • Fire on Initialization: Off

Dynamic action first true action

Create another true action:

  • Action: Execute JavaScript Code
  • Selection Type: Triggering Element
  • Fire on Initialization: On
  • Code:
this.affectedElements.trigger( "custom-event-refresh" );

Dynamic action second true action

Comments

No comments yet on this post