JS Display Specific Sheet in Multi-sheet Report

  • Last update:  2020-12-30
  • I. Overview

    If there are multiple sheets in a report, the first sheet is displayed by default after previewing, so how to display the specified sheet?

    As shown in the example below, the second sheet will be displayed by default after previewing.

    image.png

    II. Example

    2.1 Prepare template

    Prepare a report with 2 sheets.


    2.2 Add event

    Click Template > Web Attributes, and select Data Entry Settings. Check Individually set for the template, and add a Start Loading event, as shown in the following figure:

    Snag_57605cc.png

    The JavaScript code is as follows:

    if (typeof(tempfirstLoad) == "undefined")
    {
    contentPane.$contentPane.data('TabPane').selectTabAt(1);//The number of the sheet starts from 0 by default, so the number of the second sheet is 1
              tempfirstLoad ='false';
    }


    2.3 Effect preview

    Save the report, click Data Entry Preview, and the effect is as shown at the beginning.

    Note 1: Mobile terminal is not supported.

    Note 2: New Data Entry Preview is not supported.

    III. Completed Template

    Attachment List


    Theme: Data Entry
    • 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