on 05-08-2009 9:05 AM
Hi expert,
i want to change the tooltip text at run time in my input filed .
Thanks,
Vikash
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.