Forum Discussion
Hi Jack,
.Remove and .List do not work in my case, as I would need to know the member name.
The MemberList method works (we use some of them), however, I don't get a Tree style. I wanted to have the same effect as the member.Tree
I managed to present using Top.ChildrenInclusiveR.Base, so I skip some parents after the first level of parents.
Would be nice to have functions to select members by either Generation or Levels.
RafMarques wrote:The MemberList method works (we use some of them), however, I don't get a Tree style. I wanted to have the same effect as the member.Tree
I forgot to mention, but i'll post it for reference: you can actually get a tree with custom member lists. The key is building the list with MemberInfo objects rather than Member objects; MemberInfo has a property .IndentLevel, which you can explicitly set for each object. It starts at 0, so if you set to 1 for a member, that member will be indented one level; 2 will go one level further; etc etc.
This is actually shown in the Snippet in the screenshot below, but it's a fairly complex one (recurring over the tree, checking for Entity state by period...) so it tends to be overlooked.