Note: The following interfaces only support cpt templates using the new calculation engine.
expandNodeLayer
| Method | expandNodeLayer(layer) | Expand the collapsed tree to N level nodes |
|---|---|---|
| Parameter | layer: number | Node level, number, the outermost node is 0 |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report, expand the collapsed tree to the level 1 node 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
| |
| Mobile | Not support mobile terminal | |
collapseNodeLayer
| Method | collapseNodeLayer(layer) | Collapse the collapsed tree to N level nodes |
|---|---|---|
| Parameter | layer: number | Node level, number, the outermost node is 0 |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report, collapse the collapsed tree to the level 1 node 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
| |
| Mobile | Not support mobile terminal | |
expandAllNodeLayer
| Method | expandAllNodeLayer() | Expand all nodes of the collapsed tree |
|---|---|---|
| Parameter | - | - |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report, expand all nodes of the collapse tree 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
| |
| Mobile | Not support mobile terminal | |
collapseAllNodeLayer
| Method | collapseAllNodeLayer() | Collapse all nodes of the collapsed tree |
|---|---|---|
| Parameter | - | - |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report, collapse all nodes of the collapse tree 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
| |
| Mobile | Not support mobile terminal | |
