FVS Component Refresh

  • Last update:July 25, 2024
  • Overview

    This document is applicable to users who have installed the FineVis Data Visualization plugin to learn plugin functions.

    Version

    Report Server VersionPlugin VersionFunctional Change
    11.0.21V2.0.0

    Added Component Refresh to FVS, achieving 

    real-time push refresh based on data changes.

    11.0.22V2.7.1

    Added Enable Only Data Refresh in Component 

    Refresh. For details, see section "Enabling Only Data Refresh."

    Application Scenario

    The Monitor Refresh function of FVS components initiates a refresh request at set intervals. This function reduces performance somewhat and frequent requests may stress the database.

    After Data Push Refresh is enabled, if you enable Monitor Refresh for a component (meeting the data push refresh conditions), the component can realize instant refresh based on data changes.

    The effect is shown in the following figure.

    Environment Preparation

    To realize the data push refresh of a component, ensure that all datasets used by the component meet the data push permission.

    iconNote:
    To determine whether a 3D component meets the data push permission is based on its data layers, not requiring all datasets to meet the permission.

    That is, the corresponding database needs to be MySQL, SQL Server, or Oracle, and needs to be configured for authorization. 

    Function Introduction

    Function Entry

    You can select Enable Data Push Refresh and Enable Only Data Refresh under Template > FVS Template Setting > Component Refresh.

    8c2bc31c9027c1c3e0383681e15017d - Copy.png

    Enabling Data Push Refresh

    After selecting Enable Data Push Refresh, you can click Verify Now to verify whether all components (with Enable Monitoring Refresh selected) in the current template meet the data push permission in real time. Then a permission verification list pops up. 

    Display fields in the list include the name of Database/Database Table/Dataset, whether the data push permission is met, and the name of Related Component (prefixed with the page name by default).

    e34bca86981dc9214f7cfdc3aa0fd7f.png

    Data Push Refresh Rule

    1. Data push is based on connected WebSocket. The designer platform requires you to log in first and connect to the WebSocket.

    Therefore, you need to log in to the decision-making platform for data push refresh to take effect. Otherwise, data push refresh does not take effect and the original monitor refresh rule is retained if you access the template.

     

    2. Enable Monitor Refresh and Data Push Refresh for a component:

    ·       If the data push refresh permission is met, during preview, the component monitors its data table and refreshes itself only when the component re-requests the updated data.

    ·       If the data push refresh permission is not met, the component follows the original monitor refresh rule. That is, the component requests data at set intervals.

    3. If multiple tab pages are opened in the browser during template preview, the data push refresh may not be realized by default because WebSocket cannot be shared.

    In this case, you need to set System Parameter Name to WebSocketConfig.randomSession and System Parameter Value to true through the FINE_CONF_ENTITY Visual Configuration plugin.

     

    Enabling Only Data Refresh

    The function takes effect only on the components including custom 3D scene components, 3D city scene components, and Unity components.

    The function effect: Only data is refreshed (with real-time interaction retained) when a monitoring refresh or data push refresh is performed. For example, scene perspectives and model animations are unaffected by refreshes.

    Example

    iconNote:
    Ensure that you have completed environment preparation in above section before performing the following steps.

    Creating a FineVis Visualization Dashboard

    Choose File > New FineVis Visualization Dashboard in the upper left corner of the designer, click Create a Blank Dashboard, and click Create Dashboard.

     

    Data Preparation

    Define the data connection according to the actual database type.

     

    Create a database query.

     

    Designing Components

    Designing a Table

    1. Choose Text > Table in the component area, drag the Table component into the canvas, and click Edit Component on the configuration panel to open the editing page.

     

    2. Drag the fields in the dataset directly into the cells and click Return to FineVis Visualization Dashboard.  

    Designing a Column Chart

    Choose Chart > Column Chart in the component area, drag the Column Chart component into the canvas, and bind the data.

     

    Setting Refresh

    Enabling Component Monitoring Refresh

    Select a component, click Interaction on the right configuration panel, and select Enable Monitoring Refresh. (The functions of both components need to be enabled.) 

    8f0e4ad707f1fbeb1da2ccd7b86f145.png 

    Enabling Data Push Refresh

    Choose Template > FVS Template Setting > Component Refresh and enable Data Push Refresh. Then the two components added above meet the data push permission.

    图片21.png

    Demonstration

    Log in to the decision-making platform and preview the template. The effect is shown in section "Application Scenario."

    iconNote:
    The document takes a local MySQL database as an example and does not provide template examples.

    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