cancel
Showing results for 
Search instead for 
Did you mean: 

How to add background color style to a dimension header with compact display?

JefB
Active Contributor
0 Kudos

Hi Experts,

We use a SAC optimized story build on a live BW query, and we leverage the 'compact display' option available in the table widget API's. For example: Table_1.setCompactDisplayEnabled(true)

However, we don't see a way to apply a background color (style) to the generated column dimension header.

To apply dimension header styling, it seems that we need the column available in story edit mode to manually apply a cell style. However, to manually set a cell style the header column is not available in edit mode, because the compact display is only rendered in view mode.

I also see no way to apply Styling Rules to dimension headers (only to data and header, but not dimension headers).

Does anyone know a trick to do it anyway?

Example of dimension headers highlighted here in yellow:

Example of dimension header with compact display enabled (across 5 dimensions):

View Entire Topic
JefB
Active Contributor
0 Kudos

Found a workaround now using CSS code, but empty header cells do not always format along.

.mystyle .sap-custom-table-dimension-header-cell{
	background-color:green;
	color:white;
}