Getting Column Names

ResmiKR
New Contributor II

Dear Community,

Is there any possibility to get column names using Cube View Extender rule or XFBR?

Thanks in advance. 

1 REPLY 1

KarlT
Contributor

I think it would depend what you're trying to do with it - there would be no way to do it with an XFBR i dont think. I believe you would have to pass it through as a variable by hard coding it when you call the XFBR. So:

XFBR(RuleName, FunctionName, ColName = [HardcodedColName])

In a cube view extender you can retrieve it like this:

Dim uiItem As CVExtenderReportUIItem = args.Report.CurrentUIItem
If uiitem.UIItemType = XFReportUIItemType.ColHeaderLabel
Dim name As String = uiItem.GetColHeaderName()
End If

But not sure if that would be helpful to you.

Regards,