Forum Discussion

johnal67's avatar
johnal67
Contributor
3 years ago

Cubeview Underline last expanded member before totals

This seems very standard, so I have to be missing something.  I have the row filter on a Cubeview "A#6020.TreeDescendantsInclusiveR".  6020 is the total line for all the single level descendants.  Ho...
  • ChristianW's avatar
    ChristianW
    3 years ago

    If it is for reports, you can use the execute cubeview extender inline formula:

    your sample would look similar to this:

    Select Case args.FunctionType
    	
    	Case Is = CVExtenderFunctionType.GetReportOptions
    		'Dim reportOptions As New CVExtenderReportOptions()
    		'reportOptions.ReportMarginTop = -1.0
    		'reportOptions.ReportMarginBottom = -1.0
    		'reportOptions.PageHeaderTitlesHeight = -1.0
    		'reportOptions.PageFooterHeight = -1.0
    		'Return reportOptions
    	
    	Case Is = CVExtenderFunctionType.FormatReportUIItem
    		Dim uiItem As CVExtenderReportUIItem = args.Report.CurrentUIItem
    		Dim dimPkObj As DimPk = BRApi.Finance.Dim.GetDimPk(si, "HoustonAccounts")
    		
    		Dim rowMemberId As Integer = uiItem.GetRowHeaderMemberId(0)
    			
    		If BRApi.Finance.Members.HasChildren(si, dimPkObj, rowMemberId)
    			uiitem.BorderColor = XFColors.Blue
    			uiitem.BorderLineStyle = XFReportLineStyle.Solid
    			uiitem.BorderSides = XFSides.Top
    			uiitem.BorderThickness = 1
    		End If			
    	
    End Select
    Return Nothing