The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
CarlosAlvear
2 years agoContributor II
Define and Edit Text for IC members
Dear all,
I'd like to know how do you define a particular text for an IC member. I thought that once you define a text for an entity having a IsIC = True will transfer that information automaticall...
- 2 years ago
My bad, I got confused with something else.
I think this warrants a quick member list. Amend values of dimensionName and entityFilter as necessary:
' in a Finance BR Case Is = FinanceFunctionType.MemberList If args.MemberListArgs.MemberListName.XFEqualsIgnoreCase("withText1") Then Dim dimensionName as String = "CorpEntities" Dim entityFilter as String = "E#Root.Base.Where(Text1 <> '')" Dim ICs As New List(Of Member) Dim entities As List(Of MemberInfo) = brapi.Finance.Members.GetMembersUsingFilter(si, _ brapi.Finance.Dim.GetDimPk(si, dimensionName), _ entityFilter, _ True) For Each entityMInfo As MemberInfo In entities ICs.Add(brapi.Finance.Members.GetMember(si, dimtypeId.IC, entityMInfo.Member.Name)) Next Return New MemberList(New MemberListHeader("withText1"), ICs)
CarlosAlvear
2 years agoContributor II
Hi Jack,
Thank you for your idea. I tried something simpler without success [I#ICEntities.List(E#YourRoot.Children)]. It's the first time I see that it's possible to select a member from another dimension. Should it work?
Thank you. Best regards
JackLacava
OneStream Employee
2 years agoMy bad, I got confused with something else.
I think this warrants a quick member list. Amend values of dimensionName and entityFilter as necessary:
' in a Finance BR
Case Is = FinanceFunctionType.MemberList
If args.MemberListArgs.MemberListName.XFEqualsIgnoreCase("withText1") Then
Dim dimensionName as String = "CorpEntities"
Dim entityFilter as String = "E#Root.Base.Where(Text1 <> '')"
Dim ICs As New List(Of Member)
Dim entities As List(Of MemberInfo) = brapi.Finance.Members.GetMembersUsingFilter(si, _
brapi.Finance.Dim.GetDimPk(si, dimensionName), _
entityFilter, _
True)
For Each entityMInfo As MemberInfo In entities
ICs.Add(brapi.Finance.Members.GetMember(si, dimtypeId.IC, entityMInfo.Member.Name))
Next
Return New MemberList(New MemberListHeader("withText1"), ICs)
Related Content
- 2 years ago
- 8 months ago
- 2 years ago