cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with tooltip

Former Member
0 Kudos

Hi,

I am facing two issues with tooltip in Web Dynpro Java.

1. If tooltip is too long, it is truncated: For some input fields, I have tooltip with 4-5 lines. Only first 2-3 lines are getting displayed as tootip.Is there any maximum limit for tootip length? If yes, How can I increase it?

2. Tooltip is displayed for very short time: I have seen some of the posts (year : 2005) regarding this. Is there any solution available to this problem now? Tooltip is displayed for only few seconds and then it disappears. When you again place mouse on the same location , it does not appear for some time, then it appears again. User is not able to read entire text in such a short time.

Thanks,

Apurva

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Apurva,

In response to the first issue you are facing, please check the length of the context attribute that is being used to display the tool tip. If the text exceeds the maximum text size of this attribute bound to the tooltip, then only a part of the text would be displayed.

The tooltip is displayed for a very short time, since ideally the tooltip is supposed to be short, and only give a short description of the field. In case you need to provide a detailed description, you can use a linkTo or a button alongside, which on clicking would display a popup with a text edit, if the user wishes to read details about the concerned text field.

I hope this resolves your issues, and provides an alternate solution.

Regards,

Divyata

sanyev
Active Participant
0 Kudos

Hi Apurva,

There is no option in Webdynpro for setting the duration of Tooltip visibility. Tooltips are used to show a short description of the UI element. If you need to show long text you can either use a text view besides the UI element or have an Icon next to the UI element (linkToAction with an icon) and upon clicking the icon you can use a popup window to show the description.

From Webdynpro developer perspective We don't have any control on how the tooltip is rendered or how long it is rendered. There are certain UI elements like the Network Diagram where this can be configured but not on other UI Elements.

Regards,

Sanyev

Former Member
0 Kudos

Not sure if this helps, but you can create tooltips with multiple lines by adding \n anywhere you want a line break. I use this often. I don't know if there is a line limit, but I've used it to display tooltips with 6 lines of data with no problems. For example on a date selection component I use tooltip to display the number of different types of items for that day: i.e.

-


1 Event Due

1 OFI Due

2 Workflow Tasks Due

-


But generally the kind of information I'm displaying does not require more than the 6 seconds or so that the tooltip is displayed.

A tooltip can be displayed longer by the user by simply moving the mouse slightly while the tooltip is displayed. I'm sure this is not exactly the preferred method, but AFAIK there is no setting to extend the standard display time.