Forum Discussion
btr200
1 month agoNew Contributor III
Accessing Cube View Name from within CV Extender
When I am in a Cube View Extender BR, how can I access the name of the cube view itself? Not the Title, Page Caption, etc., but the actual name of the Cube View.
Thank you!
- 1 month ago
After searching the community again, I was able to find this discussed/answered previously:
https://community.onestreamsoftware.com/discussions/Rules/how-to-get-the-name-of-a-cube-view-in-cube-view-extender-rule/19019/replies/19040
Dim cvName As String = args.Report.CubeViewGrid.NameThank you!
IftaqarAhmed
1 month agoNew Contributor III
Inside a Cube View Extender, the args parameter is a CVExtenderArgs object. It exposes the underlying cube view metadata via the args.CubeView property - that object is the stored cube view definition, so its .Name is the actual cube view name.
string cvName = args.CubeView.Name;
BRApi.ErrorLog.LogMessage(si, $"Cube View Name: {cvName}");Dim cvName As String = args.CubeView.Name
BRApi.ErrorLog.LogMessage(si, "Cube View Name: " & cvName)Hope this helps!
btr200
1 month agoNew Contributor III
Did you test this? I'm on version 9.0.3 and "Name" is not a member of 'CubeView'.
Thank you!
Related Content
- 3 years ago