cancel
Showing results for 
Search instead for 
Did you mean: 

Font style usage for Windows Popup

Former Member
0 Kudos

Hi Gurus,

I've a small requirement wherein, I need to make the messages being displayed under windows Popup in Bold and red color.

I've used this code at the moment

  • Affectation des actions aux boutons correspondants

lo_cmp_api = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_cmp_api->get_window_manager( ).

  • Affichage du message de confirmation dans une popup

lo_popup = lo_window_manager->create_popup_to_confirm(

text = tab_text

button_kind = if_wd_window=>co_buttons_ok

window_title = lv_header

close_button = abap_false

message_type = if_wd_window=>co_msg_type_warning

window_position = if_wd_window=>co_center ).

lo_popup->open( ).

EXIT.

Thanks for advance!

Regards,

Micaela

Accepted Solutions (0)

Answers (3)

Answers (3)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I think we cant display mesages in bold.

you can see the below thread which was replied by Thomas.

[;

even for window it applies the same i guess.

Priya

Former Member
0 Kudos

Hi Priya,

before all, thanks for your response!

This thread talk about change the style in all message on the site. I just need change the style in only one popup message. Is like a error message and the key user want to see in bolt and red to capture the attention of the client.

just in only one and in popup way.

Thanks for advance!!

Rgds

Micaela

Former Member
0 Kudos

Hi people,

apparently is not possible. I've found only one solution for this. It's create a new webdynpro component only for show the OTR in red color.

Maybe, in another time we can think a better solution.

Thanks

Micaela

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

in the interface IF_WD_WINDOW there is a method SET_MESSAGE_DISPLAY_MODE.

check if this may help you .

Priya

Former Member
0 Kudos

Use report_Attribute_error_message method to make message text and field binded to attribute as Red in Color.

Former Member
0 Kudos

Hi Saurav,

thank you for your reply but I need a popup with style. If I understand well, the report_Attribute_error_message method is used for if_wd_message_manager and I'm using if_wd_window_manager.

May-be is not possible...could you help me?

Thanks for all

Rgds,

Micaela