Multi line tool tip / OTR text

Hello experts,
do you know a possibility to apply a multi-line tool tip to a ui element in abap web dynpro ?
The OTR compresses multiple lines to one long line...
Thanks in advance.

Hi,
I realize this is a very old thread, but in case others, like myself, finds it, here's a simple fix for this. In the OTR text add a constant for the desired linefeed - for example "\n":
Alias ZPACKAGE/ALIAS: Line 1\nLine 2
* Generate tooltip text
DATA:
  lo_el_ui TYPE REF TO if_wd_context_element,
  lv_tooltip TYPE string.
lv_tooltip = cl_wd_utilities=>get_otr_text_by_alias( 'ZPACKAGE/ALIAS' ).
REPLACE ALL OCCURRENCES OF '\n' IN lv_tooltip WITH cl_abap_char_utilities=>newline.
lo_el_ui->set_attribute( name = 'TOOLTIP' value = lv_tooltip ).
The same technique can be used for tabulators (using constant
cl_abap_char_utilities=>horizontal_tab), however, there's no guarantee how this will presented in the browser.
Best regards,
Jacob Laursen

Similar Messages

  • Multi line tool tip in ABAP Web Dynpro

    Hello experts,
    do you know a possibility to apply a multi-line tool tip to a ui element in abap web dynpro ?
    The OTR compresses multiple lines to one long line...
    Thanks in advance.

    This is not a forum for application specific questions. [Web Dynpro|Web Dynpro Java; , BSP , CRM development, ... have their own forums.

  • Multi-Line Tool Tip

    Greetings<p>
    I want to have a multi line tool tip generated from database table fields.<p>
    Currently I'm using #{datasource.currentRow["FieldName1"]}, #{datasource.currentRow["FieldName2"]} etc., but some of the strings in the field are rather long.<p>
    I have tried placing a \n within a constant string (i.e. "constant\nstring") and it shows up just like that.<p>
    Any suggestions ?<p>
    Thx,<p>
    Jim

    Hi Jim,
    Please go through the following thread and see if it helps you:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=52787
    Cheers
    Giri

  • HTML tool tip on text fragment....how?

    I need a tool tip on a piece of text using HTML. I thought below would work when pasted in the HTML snipped widget, but it does not work (everything is fine, just no tool time).
    text fragment
    What would work?
    Thanks
    bob

    Bob ~ If your post doesn't look correct in Preview mode, it probably won't look correct when posted. For most HTML to display properly in these forums it has to be "escaped", using this free tool for example:
    http://www.htmlescape.net/htmlescape_tool.html
    ...then your code fragment will look like this:
    <span tooltip="This tool tip is attached to a <span> element that encloses the words "text fragment""> text fragment </span>
    As far as solving the problem, I'm not sure, as this solution with URLs:
    http://iwebfaq.org/site/iWeb_Tooltips.html
    ...may not be what you're looking for.

  • Can thumbnails show tool tip/alt text in slideshow?

    I would like the thumbnails in the slideshow to show the tool tip text or alt text on hover/rollver. Possible?
    I have populated the image properties (tooltip and alt text) but they do not appear. It does work if you populate hero images but would be more useful in thumbnails as a selection method if you could see what you were selecting.

    Hi,
    Check this Demo <b>BCALV_DEMO_TOOLTIP</b>
    This is Available in ECC 5.0 version
    Regards
    vijay

  • Line tool please

    Line tool please, convertable text (to image/maybe png), dropdown menu (sub titles), other import image example: svg and other popular formats, that is all for now, greetings from Turkey

    Hi,
    You can post these feature request on :- Ideas for features in Adobe Muse
    Regards,
    Rohit Nair

  • Flexdoc tool tip

    Hi,
    I can't see the the java-doc like comments appearing in tool
    tip when I place the cursor over a declared or core type, like
    ArrayCollection. The problem is same in Flex Builder professional 3
    or eclipse plugin.
    Do I need third party plugin for this or just need to
    configure it?
    -Thanks,
    Madhav

    Hi Shambvi
    You should give the text for tool tip  in text element like
    <b>int_fielcat-tooltip = text-011</b> ,
    If u hard code the value, it ll not change.
    regards
    karthik
    *******rewards points if useful

  • Multi line ballon tool tip

    I have used ballon toolip, it have multiple lines to show the tool tip, but it is not working.
    I have added Component in bolloon tool tip to show multi line text , but still not showing correctly.

    aanu wrote:
    But it not works fine.
    Please suggest me the way .
    THE WAY
    1) Tell us what "not works fine" is supposed to mean.
    2) Tell use what the hell balloon tip means. Where did you get this? How do you call it?
    3) Post your code. USE FORMATTING TAGS. At least some code to give anyone a clue of what you are doing.
    4) Next time post into the correct forum.
    It never fails to amaze me when asked for more useful details people respond as you did here. By repeating, ad nauseum, information that was already clear but doesn't actually tell anything. Yes. We got that "it" only displays one line. But you didn't answer any of the questions asked which relate to what the hell is "it" and how the hell are you calling "it". etc.

  • How to use long texts in explanation tool tip?

    Hi ,
         Can anyone tell me how to add long text in Explanation tool tip?
    I am able to use short OTR texts in explanation tool tip but not able to use long OTR texts.
    Thanks and regards,
    Vivek Shetty.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • New lines created in excel when displaying multi-line text item value

    Hi all,
    I put the value of a multi-line text-item into a csv file :
    DECLARE
    file_filter VARCHAR2(256) := 'Export Files (*.csv)/*.csv/All Files (*.*)/*.*/';
    fExp VARCHAR2(256);
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(4000);
    BEGIN
    fExp := get_file_name ( directory_name, file_name, file_filter, NULL, SAVE_FILE, TRUE);
    IF fExp IS NOT NULL
    THEN
    set_application_property(cursor_style,'BUSY');
    in_file := Text_IO.Fopen( fExp, 'W');
    linebuf := NVL(:com_bnc_possibles.LIBEL_TRAITE,'') || ';' ||
    NVL(:com_bnc_possibles.NUM_ANFR_ID,'') || ';' ||
                             NVL(:com_bnc_possibles.ver_fiche,'') || ';' ||
                             NVL(:com_bnc_possibles.titre,'') || ';' ||
    NVL(to_char(:com_bnc_possibles.date_creat, 'dd/mm/yyyy'),'') || ';' ||
    NVL(to_char(:com_bnc_possibles.date_valide, 'dd/mm/yyyy'),'') || ';' ||
    NVL(:com_bnc_possibles.LIBEL_STATUT,'') || ';' ||
    NVL(:com_bnc_possibles.label_reg,'') || ';' ||
    NVL(:com_bnc_possibles.nom,'') || ';' ||
    NVL(:com_bnc_possibles.prenom,'') || ';' ||
    NVL(:com_bnc_possibles.nom_societe,'') || ';' ||
    NVL(:com_bnc_possibles.comp_bnc,'') || ';' ||
    NVL(:com_bnc_possibles.motifs,'') || ';' ;
    Text_IO.Put_Line( in_file, linebuf);
    Text_IO.Fclose( in_file);
    set_application_property(cursor_style,'DEFAULT');
    END IF;
    END;
    And when I opened the csv file then the remaining lines , that is from the second line , of the column "motifs" are displayed through the column A of excel. The "motifs" multi-line text-item has 500 as its Maximum Length property value, and has a Char Data Type property value.
    So how to display all the motifs' lines through the same column M without displaying the remaining lines in column A ?
    Or are there tips to remove CHR(13) characters from a multi-line text-item ?
    Thank you very much indeed.
    Message was edited by:
    andrianiaina

    Hi,
    I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
    <html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
    So I am able to see the prompt like :-
    User authentication failed.
    Cause: Invalid password.
    Hope this helps you...
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Tool Tip line breaks

    I know the "tool tips" should be brief, but I got a long one, and a line break would make it more readable.
    Is there a way to add a line break in NIB object's Help "Tool tip" property? Some sort of keystroke like Shift-Return?
    Presently I edit the Tool Tip text in a word processor, add Returns where I want, and then copy and paste into the Tool Tip field. Works fine, but I wonder if there is an "inline" alternative?
    John

    Is there a way to add a line break in NIB object's
    Help "Tool tip" property? Some sort of keystroke like
    Shift-Return?
    Try Option + Return

  • Type Tool tips-Navigating through & editing text

    Type Tool Tips for Photoshop
    Most folks understand how to create text in Photoshop. You select the Type Tool from the Toolbox, or you tap the "T" key on your keyboard. Then, in the Character Palette you set the attributes for font, color, size, etc. A simple click in your document window will mark the spot where you may begin typing unbounded "point" text. Or, you click and drag in your document window to create a paragraph text box. Type out your text, then tap your "Enter" key to commit the text to its new layer.
    It's pretty straightforward, and Photoshop offers a decent set of tools to adjust how your text looks. One hitch that long-timers will tell you about, though: It's generally accepted that Photoshop isn't the best application to be using if you have to have to create a lot of text because it doesn't have all of the adjustment functions necessary to produce large amounts of professional-quality text. Well, the real world being what it is, sometimes, and for some users, Photoshop is the only application they have to work with; might as well make the best of it, right?
    So, once you have text entered onto a layer in your document, how do you then reselect it either all of it or just a portion and navigate through it easily? What follows will answer some of those questions.
    Note: The keyboard shortcuts that follow assume you are using a Mac. If you're using Windows, substitute the CTRL key for "Command."
    Double-Click on the boxed 'T' thumbnail on the desired Text Layer in the Layers Palette. This will select and highlight all of the text on that layer.
    Then, if you want, you can use some keyboard shortcuts to move the "Blinking Bar" Type Tool cursor through the text.
    Assuming that your text is enclosed in a click-and-dragged out paragraph text box...
    When all text is highlighted:
    "Home" key will move cursor to the beginning of first line of text.
    "End" key will move cursor to the end of last line of text.
    When text is NOT highlighted, but cursor is flashing within the text:
    "Home" key moves cursor to the beginning of the line it's in.
    "End" key moves cursor to the end of the line it's in.
    Command + "Home" moves cursor to beginning of first line of text.
    Command + "End" moves cursor to end of the last line of text.
    Shift + "Home" selects text from cursor position to the beginning of the line it's in.
    Shift + "End" selects text from cursor position to the end of the line it's in.
    Shift + Command + "Home" selects text from cursor position to the beginning of the first line of text.
    Shift + Command + "End" selects text from cursor position to the end of the last line of text.
    Arrow keys can also be used to select text in various ways.
    When your cursor is flashing within the text:
    Shift + Right Arrow cumulatively selects text one character or space at a time, from cursor position, progressing toward the end of the text.
    Shift + Left Arrow cumulatively selects text one character or space at a time, from cursor position, progressing toward the beginning of the text.
    ⇒ Add the Command key to select whole words at a time, in either direction.
    Shift + Up Arrow selects text from cursor position back to the next line above the cursor.
    Shift + Down arrow selects text from cursor position forward to the next line below the cursor position.⇒ Add the Command key to select text starting from the cursor position, and accumulating either back to the beginning of the first line, or forward to the end of the last line.
    That covers most of what (or more than) you need to know to navigate through and highlight text. There are some other key combos, and now that you have an idea of what to do, I'll let you experiment and discover them on your own
    Type Tool Visual Indicators
    Keep a close eye on your Type Tool cursor as you move it near to and away from a hunk of text in your document window; it will change form to indicate different functions.
    When you see it as a plain old "I-Bar" cursor, like so:   ...that means that it's ready to select a position within that text, or to select a hunk of that text.
    When you see a "boxed I-Bar" cursor, like so:    ...that means your cursor is outside of the selectable area for the current text, and is ready for you to click (to start right in typing some unbounded point text) or click-n-drag (to create a paragraph text box). This will, of course, create a new text layer.
    How can you get a visual indicator of where that selectable area for current text begins and ends without blindly moving your Type Tool cursor around the text? Double-Click on the "Boxed-T" thumbnail in the Layers Palette. The text for that layer will become highlighted in your document window. See the black area that surrounds the text? That shows you the actual space occupied by the characters. If your Type Tool cursor is inside this highlighted area, it will display the plain "I-Bar" cursor. If it's outside of that area, it will display the "Boxed I-Bar" cursor.
    Want to FORCE Photoshop to create a new Type Layer, even though you're seeing the plain I-Bar cursor? Hold the SHIFT key, then either click, or click-n-drag out a paragraph text box.
    Info assembled & provided by phosphor.digital.network

    Myriad Pro OTF v 2.102, Regular
    Mac OS X 10.8.2
    8 GB RAM - 2.8 GHz
    Illustrator CS6 16.0.3
    No extra plug-ins beyond the initial install
    Double-clicking with the Arrow cursor will select existing type.
    The Type Tool jumps to a different location when creating a new block, like I have snap-to-grid turned on.
    Cursor is different than previous versions. After setting preferences to "Type Object Selection by Path Only" the cursor is behaving more like I expect it to. But… it still is working oddly. New doc, created a new type object, clicked arrow cursor to deselect it, then tried selecting it with the Type Tool. Creates a NEW path.
    Cursor looked like "Area Type Tool" in doc 1, but does not behave that way.
    Until I straighten this out, I'll stand by my original statement. It's unuseable.

  • How can I break the tool tips (tip strips) into to seveal lines?

    I use the tip in "Description and tip..." to display tool tips (tooltips, tip strips, help cues, the little yellow strips with helpful information about a control). Some of the help messages are long, but the tips are still displayed on one line. In some cases the whole text can not be read because the tip is wider than the screen. I would like to be able to specify a maximum width of the tip, or to be able to manually insert line breaks.

    Hi Nick
    Actually, I write multiline string up to 256 char long in worpad. Then, I copy and paste into de tip dialog from pop up menu and it works fine.
    Hope it helps.
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Tool Tips on selected text

    Hello,
    Is it possible to have a tool tip for the selected text in a text frame.
    Thanks.

    I'm not sure if you're refering to components you can place in containers, but if you are, there's a ToolTipText option in the component inspector for every component you can select. If you want to change the tooltips manually for specific components, you can use the method (Component).setToolTipText(String text). Hope that helps...
    hello again,
    just one more question :) i was wondering if anyone
    knows how to implement tool tips with controls in
    JavaForte. i looked through the properties window,
    but didnt see any .ToolTipText property.... i know
    its possible, and probably just one line of code,
    anyone know it? thanks a lot in advance for any help!
    talk to ya later,
    Steven M. Berardi
    [email protected]

  • Permanently save line spacing in a multi-line text field

    Me: Adobe Acrobat 8 Pro, Windows Vista
    (I think the people who will be using the form have Reader 7 on Windows)
    I work in a doctors' clinic, and we use phone message sheets to document conversations between the patients/us/nurses/doctors, and I scanned the form and made it into a fillable PDF for our secretaries to fill out more quickly. The "message" area has pre-printed lines on it, and the multi-line text field I placed there needs to match up to the lines. I used the Rich Text Formatting options to set it to "Exactly 24 Points," but I can't get it to KEEP the formatting permanently. The only way I could get it to save the formatting in that field was to put a space in it and then save it, and then give that to the 2 phone secretaries. It works perfectly the first time, but instead of just closing/re-opening the file to start a new message, one of the secretaries highlights everything in the "message" field and deletes it... which deletes the line spacing formatting. I've told her
    b numerous
    times to leave that starting space in the field, but she "forgets" so all of her messages look messed up. So is there a way to force that line spacing
    b PERMANENTLY
    ???? Here's a shrunken screenshot of the field -- I wish I could just erase the lines altogether so the spacing wouldn't matter, but the secretaries type/print the message out, then the nurses/docs write on the page with pen so the lines have to stay. http://img187.imageshack.us/my.php?image=notepreviewph8.jpg
    Thanks!

    You can set the font size of the text. Then play with the underlines in the original document to match the needs of the font that is used. Print to a new PDF and then use replace pages to put the new page into the form without changing the form fields. I was able to do this with a word processing document by adding underlining in the document with 12 pt and setting the font to 12 pt in the text field. You can play with the font, the border of the field, and the underlining in the original document to get the desired result. Is this optimal, probably not. However it does the job.

Maybe you are looking for

  • Problem Installing CE on Windows XP

    Hi all, I'm trying to install CE1 SP5 on Windows XP and it fails at step 15 of 35. Hardware: AMD Athlon 64x2 Dual Core 4200+ 4GB RAM Physical (3GB RAM read by XP). Virtual memory : min : 6GB, max: 8GB. OS: Windows XP Pro Version 2002, SP2 JDK: 1.5.0_

  • The song could not be used because the original file couldn't be found

    About a week or two ago I loaded up my iTunes to find that most of my music could not be played. Upon clicking on the songs I got the message "The song '__' could not be used because the original file could not be found. Would you like to locate it?"

  • Why is the text I create in LiveType appear so low Quality in Final Cut Pro

    I been having problems trying to get my fonts and titles to look sharp because once I place them into Final Cut Pro, they become all pixelated. I have my playback at full quality, and even when I render the movie the titles look sloppy... What exactl

  • Find space between word with different endings and digit

    Hi, I'm trying to figure out how to find spaces between word and digit. I am limited to use only word 'WORD' (either capital or small caps) with different endings like -ing -s -y and more (using \S+). I wrote something like (?i)(?<=WORD\S+)\s(?=\d+)

  • Transport a  ztable from 4.7 to ecc 6.0

    hi,      i'v a prob to create a same z-table in ECC 6.0.  that is already created in my 4.7 version my ECC 6.0 and 4.7 as diff. servers. i only want to create structure. i'dont want to recreate it in ECC 6.0 is their any short cut so it can create wi