Skip to Content
avatar image
Former Member

Modify Web Report Cell Contents not working for exception Cells

Hi,

I have a web report that has exceptions in it. When I use the CHARACTERISTIC_CELL method to bold a row of cells it works fine for the cells without an exception. Cells with exceptions seem unaffected. When looking at the HTML I do see my applied bold style, but I'm guessing it's getting overridden by the exception class class="SAPBEXexcBad9"? This makes the cell red without bold So I'm trying to keep it red, but make it bold.

Anyone know why I can't override the bold in an exception cell?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 28, 2004 at 10:40 PM

    My previous post was wrong. I am using method DATA_CELL and the parameter C_CELL_TD_EXTEND to add the bold style

    Style=' '"FONT-WEIGHT: bold;

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      this is because you probably enabled navigation. in the anchor-Tag for the context-menu the style class is also written in the <a>-Tag if it's an exception cell. In this case extend the c_cell_contents anchor tag also with your style attribute.

      Heike

  • avatar image
    Former Member
    Jul 29, 2004 at 11:51 AM

    You made my day! I will try this right away!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 29, 2004 at 03:57 PM

    I can't seem to get this to work. Can you provide an example? here's what I've done. I just want to add the bold style to the cells in a specific row. but, I still want to keep the execption cell color...

    Thanks!

    DATA: MYSTYLE1 TYPE STRING.

    CONCATENATE 'Style=' '"FONT-WEIGHT: bold;"' INTO MYSTYLE1.

    CASE N_DATA_PROVIDER_NAME.

    WHEN 'DATAPROVIDER_1'.

    IF N_ITEM_NAME = 'TABLE_1'.

    IF I_Y = 1.

    C_CELL_TD_EXTEND = MYSTYLE1.

    C_CELL_STYLE = MYSTYLE1.

    ENDIF.

    ENDIF.

    ENDCASE.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I would try it this way

      DATA: MYSTYLE1 TYPE STRING,

      replace_string type string.

      CONCATENATE 'Style=' '"FONT-WEIGHT: bold;"' INTO MYSTYLE1.

      CASE N_DATA_PROVIDER_NAME.

      WHEN 'DATAPROVIDER_1'.

      IF N_ITEM_NAME = 'TABLE_1'.

      IF I_Y = 1.

      C_CELL_TD_EXTEND = MYSTYLE1.

      concatenate mystyle1 ' class="' into replace_string.

      REPLACE ALL OCCURRENCES OF 'class="' IN c_cell_content with replace_string IGNORING CASE

      ENDIF.

      ENDIF.

      ENDCASE.

      (I didn't check the syntax of the program snippet. But the idea is to add to every inside class attribute the style attribute).

      Heike