API Only for Pagination Preview

  • Last update:August 06, 2023
  • Version

    Version

    Functional Change

    11.0

    Differences from V 10.0:

    V 10.0 supports expandNodeLayer and collapseNodeLayer APIs only when you install the new engine plugin of V 1.6.0 and later versions.

    V 11.0 can directly support expandAllNodeLayer and collapseAllNodeLayer APIs.

    · 

    iconNote:
    Enable Engine-X if you want to use the following collapse tree APIs in Pagination Preview. If you do not want to enable Engine-X, you can use Data Analysis Preview.

    expandNodeLayer

    Method

    expandNodeLayer(layer)

    Expand the collapse tree to the N layers of nodes.

    Parameter

    layer: number

    Layer number of nodes (number). The layer number of outermost nodes is 0.

    Return Value

    void

    Example

    Example 1: If the obtained report block object is defined as report, you can expand the collapse tree to the first layer node.

    report.expandNodeLayer(1);

    Example 2: expand the collapse tree to the first layer node in a general report.

    _g().expandNodeLayer(1);

    Application Example

    Click the button to expand the collapse tree to the first layer of nodes.

    Click to download template: Expand the Collapse Tree to 1st Layer Node.cpt

     1.gif

    Mobile Terminal

    Not supported

    collapseNodeLayer

    Method

    collapseNodeLayer(layer)

    Fold the collapse tree to the N layer of nodes.

    Parameter

    layer: number

    Layer number of nodes (number). The layer number of outermost nodes is 0.

    Return Value

    void

    Example

    Define the obtained report block object as report and fold the collapse tree to the first layer of nodes.

    report.collapseNodeLayer(1);

    Fold the collapse tree in a general report to the first layer of nodes.

    _g().collapseNodeLayer(1);

    Application Example

    Click the button to fold the collapse tree to the first layer of nodes.

    Click to download the template: Unfold the Collapse Tree to 1st Layer Node.cpt

    2.gif

    Mobile Terminal

    Not supported

    expandAllNodeLayer

    Method

    expandAllNodeLayer()

    Expand all nodes of the collapse tree.

    Parameter

    /

    /

    Return Value

    void

    Example

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

    report.expandAllNodeLayer();

    Example 2: expand all nodes of the collapse tree in a general report.

    _g().expandAllNodeLayer();

    Application Example

    Click the button to expand all nodes of the collapse tree.

    Click to download the template: Expand All Nodes of the Collapse Tree.cpt

     3.gif

    Mobile Terminal

    Not supported

    collapseAllNodeLayer

    Method

    collapseAllNodeLayer()

    Fold all nodes of the collapse tree.

    Parameter

    /

    /

    Return Value

    void

    Example

    Example 1: define the obtained report block object as report and fold all nodes of the collapse tree.

    report.collapseAllNodeLayer();

    Example 2: fold all nodes of the collapse tree in a general report.

    _g().collapseAllNodeLayer();

    Application Example

    Click the button to fold all nodes of the collapse tree.

    Click to download the template: Unfold All Nodes of the Collapse Tree.cpt.cpt

     4.gif

    Mobile Terminal

    Not supported


    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