API Only for Data Analysis Preview

  • Last update:  2022-02-16
  • Version

    VersionFunction changes
    11.0.1Add "expandNodeLayer、collapseNodeLayer、expandAllNodeLayer、collapseAllNodeLayer" Interface

    centerReport

    MethodcenterReport()When using "Data Analysis Preview", set the report to be displayed in the center
      Parameter--
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report , the report will be displayed in the center under the "Data Analysis Preview"

    report.centerReport();

    Example 2: The general report is displayed in the center in the "Data Analysis Preview" mode

    _g().centerReport();

    Application

    example

    Under the "Data Analysis Preview", the report is displayed in the center:

    Click to download the template:

    Report display center under data analysis preview.cpt

    1.png

    MobileNot support mobile terminal

    expandNodeLayer

    MethodexpandNodeLayer(layer)Expand the collapsed tree to N level nodes
      Parameterlayer: numberNode level, number, the outermost node is 0
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report, expand the collapsed tree to the level 1 node

    report.expandNodeLayer(1);

    Example 2: Expand the collapsed tree to level 1 nodes in a general report

    _g().expandNodeLayer(1);

    Application

    example

    Click the button to expand the collapsed tree to level 1 nodes:

    For detailed implementation process, please refer to:JS Custom number of layers of tree expansion

    2.gif

    MobileNot support mobile terminal

    collapseNodeLaye

    MethodcollapseNodeLayer(layer)Collapse the collapsed tree to N level nodes
      Parameterlayer: numberNode level, number, the outermost node is 0
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report, collapse the collapsed tree to the level 1 node

    report.collapseNodeLayer(1);

    Example 2: Collapse the collapsed tree to level 1 nodes in a general report

    _g().collapseNodeLayer(1);

    Application

    example

    Click the button to collapse the collapsed tree to level 1 nodes:

    For detailed implementation process, please refer to:JS Custom number of layers of tree expansion

    3.gif

    MobileNot support mobile terminal

    expandAllNodeLayer

    MethodexpandAllNodeLayer()Expand all nodes of the collapsed tree
      Parameter--
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report, expand all nodes of the collapse tree

    report.expandAllNodeLayer();

    Example 2: Expand and collapse all nodes of the tree in a general report

    _g().expandAllNodeLayer();

    Application

    example

    Click the button to expand all nodes of the collapsed tree:

    For detailed implementation process, please refer to:JS Custom number of layers of tree expansion

    4.gif

    MobileNot support mobile terminal

    collapseAllNodeLayer

    MethodcollapseAllNodeLayer()Collapse all nodes of the collapsed tree
      Parameter--
    Return valuevoid
       Example

    Example 1: If the obtained report block object is defined as report, collapse all nodes of the collapse tree

    report.collapseAllNodeLayer();

    Example 2: Collapse and collapse all nodes of the tree in a general report

    _g().collapseAllNodeLayer();

    Application

    example

    Click the button to collaspe all nodes of the collapsed tree:

    For detailed implementation process, please refer to:JS Custom number of layers of tree expansion

    5.gif

    MobileNot support mobile terminal


    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