Skip to Content
1
Dec 15, 2022 at 02:37 PM

SAC analytical application: different coloring for tabletotals using css

194 Views

I am using a table within an analytical application within SAP Analytic Cloud.

At the moment I am facing an issue: I want to color only the totals rows with a specific color. I already had a look at the supported css class names (.my-table-theme .sap-custom-table-dimension-member-cell and .my-table-theme .sap-custom-table-data-cell).

For my use case I want to color table-dimension-member-cell and table-data-cell where the total sum is listed. The table is dynamic which means the user can add and remove columns and rows.

Please have a look at the attached picture:

pic02.png

Is it possible to mix javascript with css? I thought about a loop which is examining if in the table cell “totals” is found and if so the cell and all the other cells after that should be colored. That it means that dimension-member-cell and table-data-cell will be only active if the condition is met.

I am grateful about every hint.

Thank you.

Attachments

pic02.png (43.7 kB)