Summary of the Method to Refresh Report Page

  • Last update:  2021-02-24
  • I. Description

    In the report application, we often use the refresh of the report page, such as paging, analysis, filling and preview, when there is data update, it needs to be refreshed, the filling report needs to be refreshed after the report is successfully filled, and a certain report block in the decision report needs to be regularly refreshed. Refresh and so on, will use refresh. These refresh methods are summarized below.


    II. Summary of Various Refresh Methods

    1. Manual Refresh

    Meaning: Manually click the browser refresh button.

    Scope of application: In all report applications

    Disadvantages: The reloading speed may be slow, the parameter bar parameters will be initialized, need to be filled in again, and the user experience is poor.


    2. location.reload()

    Meaning: Refreshing the entire report page is the same as manually clicking the refresh function of the browser.

    Scope of application: In all report applications

    Disadvantages: Like manual refresh, the reloading speed may be slower, the parameters in the parameter bar will be initialized and need to be refilled, resulting in poor user experience.

    Example: Automatically Refresh after Filling in


    3. contentPane.parameterCommit()

    Meaning: Resubmit the parameter bar parameters, the report block will be refreshed, the parameter bar will not be refreshed.

    Scope of application: In all reports with parameter bars (including the use of parameter bar hiding)

    Disadvantage: The report must be set with parameter columns.

    Example: JS Implementation can Automatically Query without Clicking the Query Button


    4. contentPane.gotoPage(1)

    Meaning: Jump to the first page of the report, no matter the report is on the first page at this time, it will be loaded again, and the parameter bar will not refresh.

    Scope of application: Pagination report, Data Entry report

    Disadvantages: None (can be used without parameter column)

    Example: Custom Page Turning Button

    Note: This method can use three parameters gotoPage(pn, para, noCache), jump to the specified page, resubmit the parameters, with or without cache, it is more flexible to use.


    5. this.options.form.getWidgetByName("report0").gotoPage(1)

    Meaning: Get the report block named report0 in the decision report, and jump to page 1, which has the same meaning as above.

    Scope of application: Dashboard

    Disadvantages: None

    Note: This method can use three parameters gotoPage(pn, para, noCache), jump to the specified page, resubmit the parameters, with or without cache, it is more flexible to use.


    6. contentPane.refreshAllSheets()

    Meaning: Refresh all the sheets in the report or analysis report, the parameter bar will not be refreshed.

    Scope of application: Data Entry report, Analysis report

    Disadvantage: If there are multiple sheets to fill in, all sheets will be refreshed, which may cause data loss.

    Example: Automatically Refresh after Filling in


    7. contentPane.reloadCurLGPPane()

    Meaning: Refreshing the current sheet in the filling or analysis report, the parameter bar will not be refreshed, and other sheet data will not be affected.

    Scope of application: Data Entry report, Analysis report

    Disadvantages: None

    Example: Multi-sheet Data Entry


    8. contentPane.loadContentPane()

    Meaning: Loading the report content block will also refresh the page. If there are parameters in the parameter column, the parameter column parameters will be submitted.

    Scope of application: Pagination report, Data Entry report, Analysis report

    Disadvantages: If it is in the Data Entry report or Analysis report, all sheet data will be refreshed.


    9. globalForm.loadContentPane()

    Meaning: Loading the report content block will also refresh the page.

    Scope of application: Dashboard

    Disadvantages: None


    Attachment List


    Theme: Report Application
    • 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