Hello!
In flex 3 I have a hierarchical data structure. I would like to display the content of it in a tree. My problem is that I have nodes which data calculated from children nodes. How to structure the hierarchy to make automatic changes to those parent nodes, if their children's data changed? For example:
- Every node has a warning flag. If some of the children warning flag changed to true, then the parent warning flag should change automatically set to true.
- A node integer field is the sum of the children integer fields, and if any of the children changes, the parent integer field "calculates" the sum immediately.
Is there an easy solution wit good structuring changes happen automatically, or I have to make some custom functions?
Thanks!