Is there a way to generate a report for a hierarchical tree using JXLS (or JETT)? For example the model is something like:
-node1
--node11
--node12
---node121
---node1211
--node13
-node2
I need to render the result with two columns:
| node name | node value
| node1 | =sum(node11, node12, node13)
| node11 | 5
| node12 | =sum(node121)
| node121 | =sum(node1211)
| node1211 | 10
| node13 | 15
| node2 | 20
....
I don't know the number of nested levels in the tree. My problem is the fact that for every parent node the rendered value in excel must be a formula with sum of the direct children ... and so on. Only leaf nodes must be rendered with the actual node value.
Thank you