The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

RobbSalzmann's avatar
RobbSalzmann
Valued Contributor II
3 years ago

CubeViewGrid.ExpandedRowHeaders.HeaderItems not returning all headers

This is OS v7.4.1
It is running in a Cube View Extender Rule.
I've tried both CubeViewGrid.ExpandedRowHeaders  and CubeViewGrid.AllExpandedRowHeaders 

 

 

 

expandedRowHeaders = cubeViewGrid.AllExpandedRowHeaders;
int rowNum = 0;
StringBuilder sb = new StringBuilder();
foreach(CVGHeader cVGHeader in expandedRowHeaders)
{
   List<CVGHeaderItem> headerItems = cVGHeader.HeaderItems;
   sb.Append($"Row[{++rowNum}]:");
   foreach(CVGHeaderItem cVGHeaderItem in headerItems)
   {
      if(cVGHeaderItem.MemberInfo.NameAndDescription.Length>0)
         sb.Append($"{cVGHeaderItem.MemberInfo.NameAndDescription}|");
   }
   sb.AppendLine();
}

 

 

 

 

Using cubeViewGrid.ExpandedRowHeaders yeilds :

Using cubeViewGrid.AllExpandedRowHeaders yeilds (ironically none of the nested members on Column2):

 

I'm not getting the members shown in the green boxes:

 

 

2 Replies

  • JackLacava's avatar
    JackLacava
    Icon for OneStream Employee rankOneStream Employee

    The "All*" properties are definitely buggy (in one case I get an empty list, lol). The regular ones are more reliable - but then the second dimension is not expanded.

    I can open a case with Support (if you've not done it yet?)

    • RobbSalzmann's avatar
      RobbSalzmann
      Valued Contributor II

      Getting the nested row headers is key here.  Thanks for the feedback.  I wonder, this sort of parse has to take place to go from a Cube View to PDF or Excel.  Perhaps I'm using the wrong parts of the library?