Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Convert IWDAttribute Info Tooltip to Strng Tooltip

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

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question