cancel
Showing results for 
Search instead for 
Did you mean: 

Convert IWDAttribute Info Tooltip to Strng Tooltip

Former Member
0 Kudos

Hi all,

I'd used in a dynamic Table named <b>tab</b> the code:

tab.bindTooltip(attribute1);

This method return me the value contained in the attribute1.

Now I need to set an InputField with a String Tooltip:

IWDInputField f1=(IWDInputField)view.createElement(IWDInputField.class,"F1");
		...
f1.setTooltip(<String content of the attribute1>);
...

Have anyone an idea???

Tahnks a lot.

Gianluca Barile

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The bindTooltip(IWDAttributeInfo) method does not return anything, but binds the tooltip property to the context attribute defined by the given info (metadata).

If you want to set the tooltip to the value of some attribute, use

f1.setTooltip(wdContext.currentContextElement().get<Attribute>());

Armin

Answers (0)