cancel
Showing results for 
Search instead for 
Did you mean: 

setTooltip problem

Former Member
0 Kudos

Hi all,

I have an input field in my WD and I would like to set a tooltip with the content of a value attribute, but the <input field>.setTooltip("string") method doesn't work.

How can I solve the problem?

Thank you for any help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lorenzo,

try this:

<input field>.setTooltip(wdContext.currentContextElement().get<Attribute>());

Best regards.

Gianluca Barile

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi:

You can also map the property tooltip of input field to the context attribute

Former Member
0 Kudos

Thank you both for your quick replies, they were helpful.

Regards

Former Member
0 Kudos

Hi,

In WDModifyView add this code.

IWDInputField f = (IWDInputField)view.getElement("InputField");

String ra =wdContext.currentContextElement().getVA();

f.setTooltip(ra);

This might be helps you.

Thanks,

Lohi.