cancel
Showing results for 
Search instead for 
Did you mean: 

Tooltip

Former Member
0 Kudos

Hi

I created web dynpro application.

In that i had taken image(IE image) UI element on the screen.

I want tooltip should be displayed on the screen.

Ex:-

IE Icon -


By Placing Cursor on the Internet Explorer Image

""""""""""Launch the Internet explorer

Find and displays information and websites on the internet.""""""""".....

The tool tip text must be shown in 2 lines ......

Please help me to do this...

Regards

Sushma

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

It was working fine in the IE.Its a browser problem

Former Member
0 Kudos

I want tooltip content should be displayed in 2 lines,while i deploy and run the application..

Please help me how we can do this in web dynpro.

former_member206159
Active Contributor
0 Kudos

Hi,

Did u tried to insert '\n' in betweent the text? It works in some browsers.

You can also set in your code by creating context attribute for tooltip

wdContext.currentContextElement().setToolTip("Text 1""\n""Text 2");

Raghu

Former Member
0 Kudos

Hi Raghavendra,

I given <text>\n<text> in the Input Field - (Tooltip ) Property.

In the ooutput it is showing <text>\n<text>.

I tried according to ur suggestion in the Implementation tab

wdContext.currentContextElement.setTooltip("<text>""\n""<text>");

Here it is showing error on the screen.

Former Member
0 Kudos

I tried with this code ...

But iam getting error in first line....."get(sting)is undefined for the type <ViewName>

IWDLabel lbl = (IWDLabel)TooltipCompView .getElement("Name");

lbl.setTooltip("\n""Freespace ""\n"+"Totalsize");