Opening a Hyperlink on a New Tab Page

  • Last update:June 03, 2025
  • Overview

    Application Scenario

    You can open a report mounted to the decision-making platform on a new tab page by clicking a hyperlink. The following figure shows the effect.

    4.gif

    Implementation Method

    Method one: You can use the window.parent.FS.tabPane.addItem() API in JavaScript type hyperlinks to achieve the effect. This method only takes effect on the platform and cannot be previewed directly.

    Method two: You can install the Tab Opening on the Platform plugin, and select New Tab on the Platform when setting hyperlinks.

    Example

    The example in this document only shows the application of method one. For details about the application of method two, see Tab Opening on the Platform Plugin.

    Template Preparation

    You can open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Order Detail Table.cpt 

    You can also click to download the template Order Detail Table.cpt

    Hyperlink Adding

    1. Delete the existing Web Report hyperlink of cell A2 in the template, as shown in the following figure.

     1.png

    2. Select cell A2, add a JavaScript hyperlink, add a parameter ID, enter the formula =$$$ as the corresponding value, and enter the JavaScript codes below, as shown in the following figure.

     2.png

    The JavaScript code is as follows:

    window.parent.FS.tabPane.addItem({title:"Order Detail",src:FR.servletURL+"?viewlet=Order Detail Table.cpt& OrderID="+ID})

    Template Mounting

    Save the report, access the decision-making platform, and mount the report to a directory, as shown in the following figure.

     3.gif

    Effect Display

    Open the report in the platform directory. The effect of opening the hyperlink on a new tab page is the same as that shown in section "Application Scenario."

    Template Download

    For details, you can download the template Opening a Hyperlink on a New Tab Page.cpt

    Attachment List


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