FS Decision System

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

    Finereport.js not only contains the attributes and methods of FR, but also contains the attributes and methods of operating the decision system object FS.

    Everywhere in the report, including Web page events, widget events, hyperlink JavaScript scripts, and decision report events, can use window.parent.FS to obtain FS objects. The reason for using window.parent here is that the report is embedded in the decision platform as IFrame.

    II.FS Common Methods

    3.1 FS.signOut()

     Description:

     Log out of the decision platform on the PC. It can be called from any place where JavaScript can be written in FineReport. The template containing this statement needs to be opened in the decision platform, otherwise an error will be reported

    window.location.href = window.parent.FS.signOut();
    • To log out of the decision-making platform on the APP side, use the following method:

    FR.logoutApp();


    3.2 FS.tabPane.closeActiveTab()

     Description:

     Close the current tab in the decision platform. It can be called from anywhere JavaScript can be used in FineReport

    window.parent.FS.tabPane.closeActiveTab();


    3.3 FS.tabPane.addItem(entry)

     Description:

     Open a new tab in the decision platform. It can be called from anywhere JavaScript can be used in FineReport

     Parameters:

    •  entry: JSON

      • {title:"aaa" //title of the tab, src:"bbb"} 

    Parameter  

    Type

    Description

      entry

      Object

      mandatory, corresponding tab in entry

     Entry is provided in JSON format, and the attributes are shown in the table below

    Attribute

      Type

    Description

      title

      String

      Title of the tab

      src

      String

      The address to which the content of the tab page points

    window.parent.FS.tabPane.addItem({
     title:"bing",src:"<a style="background-attachment: scroll;
     background-clip: border-box; background-color: transparent;
     background-image: none;
     background-origin: padding-box;
     background-position-x: 0px;
     background-position-y: center;
     background-repeat: repeat;
     background-size: auto;
     border-bottom-color: currentColor;
     border-bottom-left-radius: 0px;
     border-bottom-right-radius: 0px;
     border-bottom-style: none;
     border-bottom-width: 0px;
     border-image-outset: 0;
     border-image-repeat: stretch;
     border-image-slice: 100%;
     border-image-source: none;
     border-image-width: 1;
     border-left-color: currentColor;
     border-left-style: none;
     border-left-width: 0px;
     border-right-color: currentColor;
     border-right-style: none;
     border-right-width: 0px;
     border-top-color: currentColor;
     border-top-left-radius: 0px;
     border-top-right-radius: 0px;
     border-top-style: none;
     border-top-width: 0px;
     bottom: auto;
     box-sizing: content-box;
     color: rgb(0, 51, 102);
     float: none;
     font-family: &quot;Consolas&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier New&quot;,Courier,monospace;
     font-size: 14px;
     font-style: normal;
     font-weight: normal;
     height: auto;
     left: auto;
     line-height: 20px;
     margin-bottom: 0px;
     margin-left: 0px;
     margin-right: 0px;
     margin-top: 0px;
     min-height: inherit;
     outline-color: invert;
     outline-style: none;
     outline-width: 0px;
     overflow: visible;
     padding-bottom: 0px;
     padding-left: 0px;
     padding-right: 0px;
     padding-top: 0px;
     position: static;
     right: auto;
     text-align: left;
     text-decoration: none;
     top: auto;
     vertical-align: baseline;
     width: auto;" href="http://www.bing.com/" "="">http://www.bing.com"
    })


    Attachment List


    Theme: Secondary Development
    • 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