Forum Discussion

CahSin's avatar
CahSin
New Contributor
15 hours ago

Entity Parent Business Rules not working

I using UD8 to call master data of entity. Other master data is work, but there is issue when I call entity parent. Seem like the business rules is not working. Not sure where the missing part.

If api.View.IsAnnotationType() Then
   
' Dim EntityID As Integer = api.Pov.Entity.MemberId
 
' 'Return the Account name setting for this text-based View member
'' Return api.Entity.GetLocalCurrency(EntityID).Name
' 'Dim ParentId As Integer = api.Pov.Parent.MemberId
'' return api.Entity.par
''Return api.Pov.Parent.MemberId.ToString
'Dim objList As = BRApi.Finance.Members.GetParents(si, dimPk, entity, includeRootMemberInResult, dimDisplayOptions)
'Dim oblist2 = BRApi.Finance.Members.GetParents()
'Dim ParentId As Integer = api.Pov.Parent.MemberId
' Dim ParentName As String = api.Members.GetMemberName(DimType.Entity.Id,ParentId)
'Return ParentName
'Else
 
'    'Return a NoData Datacell
'    Return api.Data.CreateDataCellObject(0.0,True, False)
End If
No RepliesBe the first to reply