on 11-25-2010 9:06 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.