cancel
Showing results for 
Search instead for 
Did you mean: 

cross tab - change column name

Former Member
0 Kudos

Hi,

I would like to change on my dashboard the name of the column in cross tab based on design studio.

I know that it is possible to do that on back-end side and provide desired names in query selection but I will need to to that on Design Studio level.

Does anyone tell me if it is possible ?

Thanks

Marcin

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Marcin,

I'm new to Design Studio, can you please tell me where exactly we need to enter the script to change the column name?

Thanks

Former Member
0 Kudos

Hi,

there's a workaround with CSS - try pseudo class to get the column and content property to set text

example:


.sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderCellDefault:last-child {

     content:"column new name"; }

Former Member
0 Kudos

Hi Ilya,

I have put your syntax to css file but it doesn't work for the cross-tab.

Would you mind to provide me some guidelines.

Thx

Former Member
0 Kudos

Hi Marcin,

sorry, forgot one more pseudo class. try this to add text to a cell:

.sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderCellDefault:last-child:after {

     content:"column new name"; }

you can replace last-child with n-th child according to your table structure

Former Member
0 Kudos

Hi Ilya,

Thanks for the response.


Yes, it works. As you mentioned it adds the text to column header after.

Do you think it is possible to replace the default header name?

Thanks

Former Member
0 Kudos

Hi Marcin,

here's additional CSS for it

.sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderCellDefault:first-child{

  visibility: hidden;

}

.sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderCellDefault:first-child:after {

  visibility: visible;

  content: "column new name";

}

Former Member
0 Kudos

Hi llya,

I have the same requirement to rename the column in crosstab, I tried the code you mentioned just above but its hiding the cell.

Looks like your code is trying to hide the cell first and then setting it visible by adding new column name. Can you please verify the code if this works for you.

Thanks & Regards,

Jiten

chandrasekhar6
Participant
0 Kudos

Hi Marcin,


I used your above mention  script for changing Column name.

It changes only middle column automatically, how to change remaining columns and how to change background of header fields in cross tab.


As our out attached below,

Please share your valuable inputs..

Thanks,

Chandra

kohesco
Active Contributor
0 Kudos