cancel
Showing results for 
Search instead for 
Did you mean: 

tooltip in web dynpro abap

Former Member
0 Kudos

Hi expert,

i want to change the tooltip text at run time in my input filed .

Thanks,

Vikash

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi,

Create an attribute of string type, bind it with the tooptip property of input field.

Set the value of that attribute with the help of code wizard (ctrl+F7) and give the required value.

I hope it helps.

Regards

Arjun

former_member40425
Contributor
0 Kudos

You can change the text of your tooltip at runtime using the following approach:

1.Create an attribute 'TOOLTIP' type string.

2.Bind the tooltip property of your input field with this attribute.

3.At runtime set this attribute with required value as follows :

DATA lo_el_context TYPE REF TO if_wd_context_element.
 
* get element via lead selection
  lo_el_context = wd_context->get_element(  ).
 
* get single attribute
  lo_el_context->set_attribute(
    EXPORTING
      name =  `TOOLTIP`
      value = 'text'  )." pass your tooltip text

I hope it works.

Regards,

Rohit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vikash

just go through this thread . in this you can get the way of setting the tooltip text

thanks