on 04-16-2009 6:09 AM
Hi all,
Please provide me solution how to get tooltip text to be displayed more than in one line.
For Example
I want to display like this
Freespace
Totalsize
I think u got my question.
Regards
Ravi
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this, this will resolve your issue:
You can set the tool tip of any UI element.
IWDLabel lbl = (IWDLabel)view.getElement("Your_Label_ID");
lbl.setTooltip("\n"+"Freespace "+"\n"+"Totalsize");
Thanks and Regards,
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi pravesh
IWDLabel lbl = (IWDLabel)view .getElement("Name");
lbl.setTooltip("\n""Freespace ""\n"+"Totalsize");
Iam getting error in the first line.***view cannot be resolved**
Is there any need to provide settings for the input field.
Please help me.
Thanks in advance.
I created input field of type sting in my application.
Hi,
For which UI element you have to set the tool tip for? Whatever is the Ui element the approach will remain the same.
get the instance of the UI element and then using the code set the tool tip.
Please refer to my first reply it clearly shows the same thing with an example.
I hope that should clear your issue. Please revert back incase the issue is not resolved.
Thanks and Regards
Pravesh
Hi
"\n" is used to use a new line in the string to be displayed in web dynpro application.
tooltip is the property of the input field which you want to modify and want to have tooltip of more than one line
Then do the following
1. check id of your inputfield (say it is "inpt").
2. now go to wddomodifyview() method in implementation part of your view.
3. write the followin code there
IWDInputField i = (IWDInputField)view.getElement("inpt");
i.setTooltip("Enter name " + "\n" + "Enter Surname");
4. now save all the metadata and deploy the application and run.
your input field will come with tooltip in two lines.
Hope it is clear.
Sarbjeet Singh Gill
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.