Forum Discussion

btr200's avatar
btr200
New Contributor III
1 day ago
Solved

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!

  • 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.Name

    Thank you!

3 Replies

  • btr200's avatar
    btr200
    New Contributor III

    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.Name

    Thank you!

  • IftaqarAhmed's avatar
    IftaqarAhmed
    New 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's avatar
      btr200
      New Contributor III

      Did you test this? I'm on version 9.0.3 and "Name" is not a member of 'CubeView'.

      Thank you!