Line breaks within contents of floating fields

Hello everyone,
I have the following question regarding the usage of floating fields and line breaks:
I have a text that incorporates a companies name using a floating field.
If the name of the company is too large, a line break is forced automatically. In some cases the companies name is like "Company 123 N.V.". When the line break is forced on this company, its shows "Company 123 N." on the first line and "V." on the second line.
How can i prevent the line break at "N."? I suppose the break is because of the "." in the text. But I want it only to be a line break if the "." is followed by a space, not if there is more text to it.
The same sort of issue we face with floating fields containing for example telephone numbers ( format: "+31 (0) 20 - 123 456 1", line break at the "+", "(" or the spaces) and e-mail addresses ( [email protected], line break at the "@" or the ".") .
Thanks for any reply on this.
Regards,
Joris

I have the same problem. Does anyone have an answer for this one, please?
Thanks,
Vanessa

Similar Messages

  • SAP PI 7.3.1 XML line break within node

    Good Morning All,
    I've an issue with link breaks in XML. Basically, the scenario is IDoc (SAP) to File (XML 3rd Party System).
    I've mapped a text field from the IDoc to the XML node (<comments>) .  The text data comes across with a delimiter !$! to indicate where a line break should occur within the <comment>  node in the XML
    For example the text line comes across in the IDoc as  line 1!$!This is Line 2!$! this one is line 3!$!  and within the xml file I need to the <comment> node to look like  <comment>line 1
                                       This is line 2
                                       this one is line 3</comment>
    We need this for formatting in the 3rd party system. I've tried various replaces etc. but the new line never seems to get recognized. 
    Any help with this would be very much appreciated.
    Thanks
    G

    Use OS specific new line character by using System.getProperty("line.separator"):
    Here is complete code:
    UDF with Context option
    Parameters:String var[], ResultList result)
    String temp[] = var[0].split("!$!");
    for(int i = 0; i < temp.length; i++)
         result.addValue(temp[i] + System.getProperty("line.separator"));
    Check it should work, I have not tested...
    --Divyesh

  • Inserting line break within label

    Hey guys,
    i've run into a small problem with the coding. right now im
    creating image viewer within a horizontal list. at first, i had
    each object coded inside the horizontal list but then i decided to
    place everything in an xml file to make changes easier. since i've
    switched, i have not been able to figure out how to insert a line
    break for each label. this is what the code looked like when i was
    naming each object.
    <mx:HorizontalList id="PosterSelect" height="352"
    columnCount="3" columnWidth="200" width="580"
    rollOverColor="#ff3344" themeColor="#DC240B"
    itemClick="itemClicked(event)">
    <mx:dataProvider>
    <mx:Array>
    <mx:Object id="object1" label="March 12, 2008&
    #13;Chicago, IL" data="events"/>
    <mx:Object id="object2" label="March 12, 2008&
    #13;Chicago, IL" data="events"/>
    <mx:Object label="March 12, 2008& #13;Chicago, IL"
    icon="{event3}" data="events"/>
    <mx:Object label="March 12, 2008& #13;Chicago, IL"
    icon="{event4}" data="events"/>
    <mx:Object label="March 12, 2008& #13;Chicago, IL"
    icon="{event5}" data="events"/>
    </mx:Array>
    </mx:dataProvider>
    </mx:HorizontalList>
    within the label property, i used the & #13; character to
    insert a line break. now im using an item renderer to call the
    information from my xml file. the problem is... i cannot figure out
    how to insert a line break like i did previously. from what i
    understand... the text in the label field of the xml file is
    already parsed when it comes into flex. so using the & #13; or
    \n characters will not work. i also tried hitting enter to insert a
    new line in the xml file but that did not work either. does anyone
    know how i could work around this?? below is my current code and
    xml
    <eventinfo>
    <events>
    <label>March 12, 2008#13;Chicago, IL</label>
    <group>group name</group>
    <location>Detroit, MI</location>
    <icon>posters/event1.png</icon>
    <fullsize>posters/event1.png</fullsize>
    </events>
    <events>
    <label>March 12, 2008#13;Chicago, IL</label>
    <group>group name</group>
    <location>Detroit, MI</location>
    <icon>posters/event4.png</icon>
    <fullsize>posters/event1.png</fullsize>
    </events>
    </eventinfo>
    <mx:HorizontalList id="HorizontalCanvas" height="337"
    columnWidth="180" width="672"
    rollOverColor="#ff3344" themeColor="#DC240B"
    itemClick="callJavaScript()" x="10" y="33" borderStyle="solid"
    dataProvider="{eventinfo.events}" borderColor="#000000">
    <mx:itemRenderer>
    <mx:Component>
    <mx:VBox width="100%" height="350"
    horizontalAlign="center">
    <mx:Image source="{data.icon}"/>
    <mx:Label text="{data.label}"/>
    </mx:VBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:HorizontalList>

    hey atta,
    sry, i was using the &#13; character but for some reason
    when i posted the character it turned into a space so i added the
    space inbetween the & and the #13;
    but yea i think it was the height... changed it to 40 and it
    worked.. i cant believe i didnt notice that lol... oh well... thx
    for the help!!!

  • Remove line breaks within a xml element

    Hi,
    I have a xml element that contains a long text string with multiple line breaks. something like this:
    text
    text
    text text
    text
    text text text
    text
    How can I remove all line breks except one, i e I still want a line brek after each text line:
    text
    text
    text text
    text
    text text text
    text
    Thanks for you help!
    Magnus

    This is a media object (BLOB) in a JDE report. But we have now modified the report to get the xml file correct from start instead.
    /Magnus

  • Preventing line breaks within field

    Hi,
    Some of my fields contain phrases that should stay together rather than break over a line. For example, one of my fields is a date field (e.g. 27 October 2009) and I'd liike the whole date field to stay together on one line. Is there any way to control this?
    Thanks a lot for any help provided!

    IS that within a table cell or free text?
    In free text it should stay together unless the field is right at the end of a line e.g.
    +This piece of text was written on 1st January
    2009 and has broken across a line.+
    Not much you can do for that except ensure that there is plenty of space.
    If its in a cell/column of a table - you need to give it enough width to handle the string in the word table. If you want to handle it programmatically you can but its going to squash other columns to make enough room. You are better to 'hardcode' the table column widths to handle the expected data.
    Regards
    tim

  • Line breaks in the "Behavioral Indicator" field that appears in Appraisals.

    Hi,
    While defining Competencies. We can specify the "Behavioral Indicator". This appears on the appraisal screen (since the competency template is attached to it.).
    E.g. for our competence called "Attendance/ Punctuality" , the following behavioural indicator has been defined.
    1: Often late and / or absent with plausible excuses.
    2: Usually punctual, but needs to improve on timekeeping.
    When this appear on the appraisal page. (OAF page), it appears in a paragraph as
    1: Often late and / or absent with plausible excuses. chr(10) 2: Usually punctual, but needs to improve on timekeeping.
    How can I make it appear as seperate lines in the OAF page.
    i.e. 1: Often late and / or absent with plausible excuses.
    2. Usually punctual
    I tried the option of introducing chr(10) as well as /<br> in between those lines but both of them did not work.
    I also tried applying the patch as per the metalink note Doc ID 465600.1 but still the problem exists.
    Can anybody suggest some way as to how to resolve this issue.
    regards
    Edited by: Maya on Nov 26, 2012 4:08 AM

    No, there is no yellow star on any of the entries. Each entry has the site's (or company's) logo, as well as the name of the site and URL. There is nothing more in each entry.

  • Detecting line-breaks within a column of an uploaded tab-delimited file.

    Suppose you upload a tab-delimited file from your laptop and split each row of the file into some structure that you append to an itab.
    Is there a way inside ABAP to detect that a field of the uploaded file has a CR or CRLF in it?  And if so, where it is ?
    Thanks in advance ...

    You can use any of the following for those char.
    DATA:   head_crnl(1)   TYPE c VALUE cl_abap_char_utilities=>cr_lf,
              top_crnl(1)    TYPE c VALUE cl_abap_char_utilities=>cr_lf,
              end_crnl(1)    TYPE c VALUE cl_abap_char_utilities=>cr_lf,
              blank_crnl(1)  TYPE c VALUE cl_abap_char_utilities=>cr_lf,
              final_crnl(1)  TYPE c VALUE cl_abap_char_utilities=>cr_lf,
              first_pgbr(1)  TYPE c VALUE cl_abap_char_utilities=>form_feed.
    Declare the above variables and check if they occur in the file. Hope this helps.

  • How to get a line break

    Hi All,
    How do I get a line break within a particular field?
    My DB structure is that I have 4 columns address_line_1, address_line_2 and so on. I cannot select them as different fields because all of them can be null, in which case i pick it from internal_address_line column.
    I use:
    SELECT DECODE(address_line_1, NULL, internal_address_line, address_line_1 || ', ' || Address_Line_2) as ADDRESS
    But instead of th comma separating the 2 address lines I want a line break so that 2 address lines come in 2 separate lines in the output.
    It doesn't allow me to use chr(10) as a line break and gives an error
    I'm using Reports 2.5
    TIA
    Naveen

    Yes, true.
    How about setting up the sections as:
    Section 1 Introduction ('Section num space introduction' in this example - tab may be better)
    Then generate the Contents.
    Then do a GREP find/change on the document after the contents:
    This will add a forced line break and tab after each section number... You might want to specify a para style in the Find Format box too, so that references to Section xx in body text are not altered.
    If you update Contents after this, you will get the line break and tab in the Contents too.

  • Does itunes u descriptions no longer support line breaks?

    Hi. I've got a faculty member that wants all of his course recordings available on itunes u. Previously, he would write a description for each session which I would post in the description field. Now, it appears that the description field no longer supports line breaks. Content generated prior to June is fine but all new content just runs on in one long paragraph. Anyone else seeing this problem?

    The collection is in the iTunes U directory. I'll have to breadcrumb you there since I don't know how to direct link. So, go to the University of Washington, Social Science, T536 Taxation of Trans-Pacific Transactions. In the description, you will see it is one giant paragraph, no formatting. Before we were converted to the new template (apple template, not our own) in April, this was formatted properly. I've created new collections and they also suffer from this same issue so it isn't simply a matter of the conversion. Thanks you for your help!

  • Missing line breaks with Excel

    Hello,
      Am downloading certain into Excel using BSP. I am changing response mime type to "application/vnd.ms-excel" and am sending tab-demilited string as data.
      Some of the columns should contain line break within the cell( Mean the Alt-Enter in Excel cell ). I tried using the character code 10 and also 13 for the break. But it did not work.
      How do I cause a line-break in the Excel cell? Any work-arounds??
    Thanks.
    Srinivas.

    Hi Srinivas,
    I think you don't have the possibility to add line breaks into a tab seperated file. You rearly had to create an excel file. Unfortenately AFAIK this is not possible in ABAP. I've done this in PHP using the <a href="http://pear.php.net/package/Spreadsheet_Excel_Writer">Spreadsheet_Excel_Writer</a>.
    Regards
    Gregor

  • Carriage Returns / Line Breaks

    I have a requirement to display a customers address in 1 column of a report. The address is stored in the RPD as Address1, Address2, etc. etc. Can I create a formula that concatenates the address fields and puts a line break, carriage return after each field?

    Hi,
    I had the same problem as member "user12673225". This worked well if I print the file in HTML, but when I print the file in PDF, the HTML control code appear in the PDF report.
    e.g.
    LTHEA A | P.O. BOX 877 *<br* | KY | VERNON A 100000479 |
    VERNON | /> GRAND...........|....|.............................|
    ...........| CAYMAN.............|....|.............................|
    ...........| KY1-1103 *<br*......|....|.............................|
    ...........| /> CAYMAN.........|....|.............................|
    ...........| ISLANDS.............|....|.............................|
    Presently I generate the report in HTML then I convert it in PDF format.
    Is there a way to print the report directly in PDF without the html control appearing in clear in the pdf, to do the job all in one step?

  • ICal 5.0 inserting a line break (Lion)

    With iCal v4 (Snow Leopard 10.6) one could insert a line break within an event by typing ALT+return.
    This functionality seems to have disappeared with iCal 5.
    Has anyone else noticed this? Is there a workaround?
    Many thanks!

    I'm considering 'busycal' although I feel like a shill paying $50 for it. Please do update this if you find a solution or try another app that works well for you.  Cheers, J

  • Determine the number of lines of textfield or floating field

    Hi,
    Is there a way to determine the number of lines of text in a textfield or in a floatingfield.
    My problem is that I'm creating a form with three tables(made of subforms) underneed each other that needs to be set to hidden when the total of rows is greater than 25.
    Now it would be easy to just count the rows but these rows can exist of multiple lines of text.
    The fields of my row are floating fields so when the text is bigger than the displayable width the text continous on a new line in the same row. So I need to know when this happens because now I can show only 24 rows.
    I tried counting the characters but this doesn't work, when there are a lot of 'i,j,l' or other small characters I can place 40 characters in my textfield, but when there are a lot of 'm,w' characters I can place only 22 characters in my field.
    I also tried to use xfa.layout.h(TextField1,"cm") to determine the height of the field, but it always retuns the value -1. I get the same -1 with the y or x - position.
    Does anybody have an idea how to solve this problem?
    Thanks in advance,
    RonnyR

    oops ... i got it thanks.
    code below -----
    for(var i=0; i <= s.length-1; i++)
    sCurrentLetter = s.substring(i,i+1);
    if (s.charCodeAt(i) == 13)
    // this is a line break

  • Field Containg embedded line breaks

    Hi Experts,
    I am doing FCC in sender File adapter. My field separator is "I" and Record separator is "\n".
    In my .txt input file, one of field contains embedded line breaks and Adapter is taking that break as end of that record.
    Without changing the file format & without using custom adapter module, how this problem can be resolved?
    Thanks

    hi Arindam,
    I beleived you had a \n (string) in middle of line, but with a CRLF in the middle of line... Heu... no, I don't know how we can manage that (and enclosureSign will not work). And I think is impossible.
    For me, you have a misbehaviour in your source system, because in a field (description), they do not put a field value but in fact a table (several lines of this description). So for me, that's a conceptual error in their side !
    My suggest is:
    1. To modify the source program of your partner application, in order to change the CRLF used in this description by a specific NewLineSeparator like #@#. by this way, they produce a long description view in a field:
    exm: description = myblablaOf1stLine#@#my2ndLine#@#my3rdLine, for the 3 lines of description:
    myblablaOf1stLine
    my2ndLine
    my3rdLine
    2. in PI adapter, this NewLineSeparator like #@# will be interpreted as all other characters... so no issue.
    3. in ECC, you will used this NewLineSeparator like #@#, to recreate the differents lines of this description, in SAP description.
    Or you do this split in your PI mapping if your ECC target is an idoc with long description (so several "line" segments).
    Regards.
    Mickael

  • Copy the contents of Jtabl with line breaks to Excel

    Hi every one,
    In my stand alone application,I am copying the contents of Jtable i.e contents having the line breaks(\n).
    While copying and pasting the contents to Jtable,instead of linebreaks, a square symbol is appearing in the excel along with the line break.line break functionality is happening,but the additional symbol(empty square box) is appearing.
    here is my code:
    S = (String) "\""+mProcessQuestionTestItemTable.getValueAt(rowsselected, colsselected[j])+"\""; S=S.replace("\r\n", "\n").replace("\n", "\r\n");
    stringbuffered.append(S);can anyone help me in this?
    thank you!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    I want to copy the contents of Jtable(contents having Line breaks(\n)) and pasting to Excel.
    While pasting the contents to Excel, a box is appearing in the excel.
    To remove the empty square box, i tried the sample code:
    originalstr =(String)"\""+ mProcessQuestionTestItemTable.getValueAt(rowsselected, colsselected[j])+"\"";
    originalstr=originalstr.replace("\r\n", "\n").replace("\n", "\r\n");
    strngBuffere.append(S);
    There will be no box,If i copy the contents of Jtable and pasting in notepad.
    the box is appearing in Excel only.
    can you suggest something to solve this..
    Thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Default printing presets

    Does anyone know of a way to make the "preset" field in the Print dialog box always default to a particular value? The current behavior, in Leopard at least, is for the preset field to be set to the previous choice. I typically print using a preset c

  • Some advice before I spend my money

    I`m planning on buying the MSI Radeon 9800 pro. I would like some feedback on that video card. Is it good?  how is its performance? Any kind of information would be apreciated. I would also like to know if it is true that it has the procesor of a 980

  • H264 made with FFMPEG not read correctly

    So I've found that encoding a video file to an h264 using FFMPEG is creating a file that is missing the first two frames in CC 2014.1.1 This problem only started in the latest version of  CC 2014 and does not present itself CC 2014.0 Here is the comm

  • Mirrored raid in early 2009 Mac Pro

    I have created a mirrored RAID on Two 1 TB Hitachi internal hard drives in my Mac Pro running 10.8.4.  I have put all of my working Photoshop files that used to reside on the desktop of my boot drive onto the RAID where they will stay until there is

  • Unable to play games requiring plug-ins since update 3.6.6.it tells me i"need to install plug-in before playing" but they are installed

    i can no longer use firefox as before update to 3.6.6...java takes forever,.. and if i try to play almost any game(even online games) i get message from firefox telling me i must install "plug-in"to be able to play. but,.i already have the correct pl