JS Auto Refresh of Dashboard

  • Last update:December 16, 2020
  • I. Overview

    1.1 Requirement

    If the FineReport App is installed at the TV client and a report or a decision-making report is displayed on a large screen, how to refresh the report by setting JS timing?


    1.2 Solution

    Support JS timing and cancel JS timing:

    setInterval('location.reload();',10000);// Time is measured in ms, namely, the page is refreshed every 10s.

    Cancel JS timing:

    var timer = setInterval('location.reload();',10000);clearInterval(timer);// Cancel JS timing. 

    II. Sample

    2.1 Design and open the template of decision-making report

    The decision-making report is designed as follows:


    2.2 Add an After Initialization event

    In the Widget Setting pane, select [body] and add an [After Initialization] event, as shown below:

    Input the JS code:

    setInterval('location.reload();', 3000); //Time is measured in ms, namely, the page is refreshed every 30s.

     

    2.3 Preview

    Save the templates and select [Dashboard Preview]. The preview effect is as shown below:

    III. Download the template

    Attachment List


    Theme: FineVis Data Visualization
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy