Successfully!

Error!

You are viewing 10.0 help doc. More details are displayed in the latest help doc

Pagination Preview Exclusive

Note: The following interfaces only support cpt templates using the new calculation engine.

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:

Click to download the template:

Expand the collapsed tree to level 1 nodes.cpt

1.gif

MobileNot support mobile terminal

collapseNodeLayer

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:

Click to download the template:

Collapse the collapsed tree to level 1 nodes.cpt

2.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:

Click to download the template:

Expand all node layers of the collapsed tree.cpt

3.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:

Click to download the template:

Collapse all node layers of the collapsed tree.cpt

4.gif

MobileNot support mobile terminal


Attachment List


Theme: 11.0 New Features
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback