You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I am right, you can also call rows not only on the last level (in the example "Spain"), but also already on the previous level (e.g. "Apples") and then you can all rows which are below that child ("2500" and "13500"), correct?
Would be useful to extend the example on using rows on lower level of the hierarchy. To my understanding that is actually the actual benefit of why you don't use dataView.rows(), but use dataView. hierarchy("X").root()....rows();
The text was updated successfully, but these errors were encountered:
Hi @hski-github! Great suggestion about adding further examples regarding how hierarchies can be used.
As the documentation states, the rows() method on any DataviewHierarchyNode computes the data view rows corresponding to the sub tree of the hierarchy node. This means it can be used on any level of the hierarchy. All nodes in the hierarchy have the same methods but only leaves have a leafIndex and non leaves have an array of children
In the section about hierarchies it could be better described how children and rows can be used.
https://tibcosoftware.github.io/spotfire-mods/docs/using-the-api/mod-data-views/#hierarchies
If I am right, you can also call rows not only on the last level (in the example "Spain"), but also already on the previous level (e.g. "Apples") and then you can all rows which are below that child ("2500" and "13500"), correct?
Would be useful to extend the example on using rows on lower level of the hierarchy. To my understanding that is actually the actual benefit of why you don't use dataView.rows(), but use dataView. hierarchy("X").root()....rows();
The text was updated successfully, but these errors were encountered: