Forum Discussion

CarlosAlvear's avatar
CarlosAlvear
Contributor
12 months ago

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...
  • JackLacava's avatar
    JackLacava
    12 months 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)