Store a cell format parameter in a Text field and use it is a cube view
hi, I was trying to use a cell format parameter I had stored in an Account Text field in a cube view using an XFBR rule. Can this work? My attempt below.
thanks,
Greg
Public Function Main(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As Object, ByVal args As DashboardStringFunctionArgs) As Object
Try
If (args.FunctionName.XFEqualsIgnoreCase("CheckDataForVisibleColumn")) Then
Return Me.CheckDataForVisibleColumn(si, globals, api, args)
ElseIf (args.FunctionName.XFEqualsIgnoreCase("GetAccountFormatFromText")) Then
Return Me.GetAccountFormatFromText(si, globals, api, args)
End If
Return Nothing
Catch ex As Exception
Throw ErrorHandler.LogWrite(si, New XFException(si, ex))
End Try
End Function
#Region "Standard Helper Functions"
Public Function GetAccountFormatFromText (ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As Object, ByVal args As DashboardStringFunctionArgs) As String
Try
Dim AccountID As String = args.SubstVarSourceInfo.PovMembers.Account.MemberId
Dim FormatParam As String = BRApi.Finance.Account.Text(si, AccountID, 1,-1,-1)
Return FormatParam
Catch ex As Exception
Throw ErrorHandler.LogWrite(si, New XFException(si, ex))
End Try
End Function