Blog Post
Thanks for this useful post!
Just wanted to comment here that it seems to me like this doesn't actually create a tree but rather an indented list. The difference here is:
- If I put this memberlist on a cube view, it is not expandable; all the rows of the list are visible all the time
- If I use this as the member filter in a member selector button, it shows a flat list even though the indent values are there in the MemberInfos
Looks like getting an expandable tree that also works in a button member filter requires using the .Tree option. Apparently the .Tree member filter only returns the MemberInfo for the top member of the hierarchy with the following properties:
- DisplayUsingExpandableTree = True
- SupportsChildren = True
Since it creates the tree only using this one MemberInfo, there doesn't seem to be any way to e.g. filter the descendants in a member rule. This is probably also why things like E#Parent.Tree.Where(...) don't seem to work.
Let me know if I'm mistaken. It would be very useful to be able to filter actual trees that could be used in e.g. member selector buttons.