cancel
Showing results for 
Search instead for 
Did you mean: 

Howtomake part of text as bold or differnt color text edit-webdynpro abap

Former Member
0 Kudos

Hi

How to make part of text as bold or differnt color in text edit-webdynpro abap.

If we can make it bold then it is ok....or else atleast we have make it into some other color of part of text.

Note:

I tried with class char utilities and able to solve the issues like new line and carriage return....but could

not make this bold or different color.

Also when I use formatedtextview, I can able to solve this bold issue but I cannot solve this newline or carriage return issue...?

Can any one help on this ?

Thanks in advance

regards,

Pons

Accepted Solutions (1)

Accepted Solutions (1)

yesrajkumar
Active Participant
0 Kudos

Hi,

Refer this thread.

[;

Thanks,

Rajkumar.S

Edited by: Rajkumar S on Feb 28, 2009 6:52 AM

Former Member
0 Kudos

HI,

Yes Arjun, as you said "There is neither any design nor any semanticColor property associated with text edit UI element".

Yes Thomas , I have done the new line ( or line break) with br tag in using formattedtextview element. Thanks for your information

Thanks to all

Regards

Pons

Answers (3)

Answers (3)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You have to use the FormattedText UI elements for such a thing. That is their purpose.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3b/219141c1d0ae5fe10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/2772f505605447e10000000a422035/frameset.htm

Supported Tags:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/08/5696420cc2c56ae10000000a155106/frameset.htm

What kind of problem did you have with the Formatted Text? Line breaks? Did you try using the br tag?

former_member15918
Participant
0 Kudos

Hello Thomas,

I am using Formatted text view. I could put line break, bold such things in that but Could not change color of it. There is no sementiccolor property to formatted text view at the sametime none of the tag I found useful to change color.

Kindly Help.

Thanks,

Hema

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

No color is not one of the formatting options in formatted text.

Former Member
0 Kudos

Hi You can try playing with the CONTENT that you are passing to TextEdit or formatter text view for display by adding cl_abap_char_utilities=>cr_lf and *cl_abap_char_utilities=>horizontal_tab *

Work around: on textView UI element if you chose the DESIGN as Header1 or Header2 or Header3

to give large font & bold view

Greetings

Prashant

arjun_thakur
Active Contributor
0 Kudos

Hi Ponnuchamy

There is neither any design nor any semanticColor property associated with text edit UI element. So I don't think it is possible to make text bold or colored in text edit.

Regards

Arjun