cancel
Showing results for 
Search instead for 
Did you mean: 

How to Assign a tooltip of 500 characters

Former Member
0 Kudos

Hi,

I need to assign a tooltip to UI elemnts whose length is upto 500-600 characters. i can not achieve this with otr because of length limitation of OTR.

please suggest how can i achieve the same.

Regards,

Pankaj Aggarwal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi pankaj ,

I dont know if this makes sense , try maintaining 2 OTR's (split the 500 chars into 255*2) and then in the WDDOMODIFY method , obtain both and concatenate them and assign it to the UI element using SET_TOOLTIP() method.

Thanks,

Aditya.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi create a attribute in your node with the type WDY_MD_TRANSLATABLE_TEXT.

bind the tooltip property the attribute which you created

EG : tooltip type WDY_MD_TRANSLATABLE_TEXT

get your otr text

CALL METHOD cl_wd_utilities=>get_otr_text_by_alias

EXPORTING

alias = 'TESTI/one '

RECEIVING

alias_text = lv_one "255

CALL METHOD cl_wd_utilities=>get_otr_text_by_alias

EXPORTING

alias = 'TESTI/two '

RECEIVING

alias_text = lv_one "255

  • read the attribute tooltip and set the value

CONCATENATE lv_one lv_two into lv_tooltip.

lo_el_context->set_attribute(

name = `TOOLTIP`

value = lv_tooltip ).

you will get this : http://i51.tinypic.com/25h0mck.jpg

regards

chinnaiya P