Skip to Content

condition on individual cell of a crosstab

crosstabpercent.jpg

Dear Experts,

Is this possible to set a CSS class for individual cells of a crosstab in SAP Design studio 16.5.0 with BEX query as a backend data source?

In my crosstab I have a column which has a number and %sign with the number. The %sign was set through CSS script. Some values in the column are zero for which blank was set via BEX query.

The Problem is %sign is shown with the blank value as well.

The requirement is to show % sign with the number and where there is a blank don’t show the %sign.

Please see the attachment. The highlighted cell shouldn’t show %sign as the value is blank.

Can we set CSS class for individual cell of a crosstab or in design studio through looping? I can get the value from the data source and can verify it is blank or not but how to access the individual cell where the value is blank?

Any idea will be appreciated.

Thanks!!!!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 02 at 11:47 PM

    Hi Afreen,

    The technique applied in the Crosstab use case in the following post may assist with your requirement: https://blogs.sap.com/2016/07/05/generate-css-code-dymanically-in-design-studio-with-the-community-package/

    Regards,

    Mustafa.

    Add comment
    10|10000 characters needed characters exceeded