cancel
Showing results for 
Search instead for 
Did you mean: 

htmlb:textView

graghavendra_sharma
Contributor
0 Kudos

Hi All,

I'm using <htmlb:textView.. > tag inside a tabStrip control. when I change the color using textColor property, it is not displayed in the given color, instead it is always displaying in black only. The following code I'm using:

<htmlb:textView text = "<%= pqr_appl->sup_name %>"

textColor = "GREEN"

layout = "block"

design = "HEADER3" />

And also, can anybody pls let me know, how do I underline a text.

Thanks in advance

Raghav

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi Raghav,

I think there is color miss configuring.

If you say "CRITICAL" instead of "RED" it will work.

The text colors available for the textView element when using DESIGN2003 don’t seem to be documented.

Note: you cannot specify a color (e.g. “RED” when using DESIGN2003)

textColor = DEFAULT / DIMINISHED / POSITVE / NEGATIVE / CRITICAL / MARKED1 / MARKED2

design = LABELSMALL / GROUPTITLE (besides the usual)

Example:

<htmlb:textView text = "TEST"

textColor = "CRITICAL"

design = "REFERENCE" />

Cheers,

Yan

guillaume-hrc
Active Contributor
0 Kudos

Hi Raghav,

I don't know about the textView inside the tabStrip but I tested the textView only and here is my analysis.

It works on Classic design and Design2002. But it won't in Design2003 due to Unified Rendering reasons. In fact, until Design2003, the color was specified as an CSS attribute (<i>style="color:green;..."</i>) of the HTML tag.

Have a look at method IF_BSP_ELEMENT~DO_AT_BEGINNING of class CL_HTMLB_TEXTVIEW. You will see this this part of code :

** DESIGN > 2002
  rc = me->delegated_begin( ).
  if rc <> co_not_delegated.
    return.
  endif.

This is precisely why it does not work anymore.

Best regards,

Guillaume

Message was edited by: Guillaume Garcia

Former Member
0 Kudos

Use this:

<%

data test type string.

concatenate '<font color=red><u>' pqr_appl->sup_name '</u></font>' into test

.%>

<htmlb:textView text = "<%= test %>"

layout = "block"

design = "HEADER3" />

cheers!

graghavendra_sharma
Contributor
0 Kudos

Hi Hemendra

Thank alot. It is working now. But I would like to know the reason why textColor property didn't work inside Tabstrip control. Let me know if possible.

Once again thanks alot for your timely help

Regards

Raghav