Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 29, 2006 at 11:23 AM

    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

    Add comment
    10|10000 characters needed characters exceeded