Textarea formatting for carriage returns

Hi all,
I've created a websheet that includes a textarea column and have found that while any text entered in edit mode displays a carriage return, as soon as the data has been entered and the field returns to read-only mode the carriage returns are not retained . . . all of the content is displayed in one continuous string. Is there a way to accomplish this?
Note: Using APEX v4
Thanks.
Edited by: arrowjf on Jan 6, 2012 1:18 PM

* The TextArea control uses UNIX-style line endings, which
means that text data containing Windows-style carriage-return
line-feed (that is, \r\n) formatting for new lines contain extra
line breaks. You can use String.replace() with a regular expression
to convert the text to UNIX-style line endings, as the following
example shows:
private static const windowsCRLF:RegExp = /\r\n/gm;
myTextString = myTextString.replace(windowsCRLF, "\n");
http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_sdk.html

Similar Messages

  • Textarea has double carriage returns

    I have some xml that looks similar to this
    <events>
    <event>
    <title> Event Title</title>
    <description>This is the event description
    When I have line breaks, like this
    the text area will show 2, everywhere
    that I only have one.
    </description>
    </event>
    </events>
    I have even tried removing the tabs, so that the only extra
    characters are CR LF , but I always see extra carriage returns in
    my textarea.
    Ayone know what is causing this ?

    * The TextArea control uses UNIX-style line endings, which
    means that text data containing Windows-style carriage-return
    line-feed (that is, \r\n) formatting for new lines contain extra
    line breaks. You can use String.replace() with a regular expression
    to convert the text to UNIX-style line endings, as the following
    example shows:
    private static const windowsCRLF:RegExp = /\r\n/gm;
    myTextString = myTextString.replace(windowsCRLF, "\n");
    http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_sdk.html

  • Oracle Reports 6i Delimied Format and Carriage Returns

    Hi
    I'm using Oracle Reports 6i to generate a report to a text file using delimited format so I can read it in Excel. I've done some testing putting some information in the layout but it seems that all my data is generated in one line. It does not generate the carriage return for the multiple rows I need. Is this standard functionality?. If so, that means I have to generate the file using PL/SQL to get the control I want?

    Whew...lot's of questions...let's see if I can help (at least a little)...
    1. Quite possibly, the user is/was pulling the image from the database? I do this in my environment, so it might be worth a look.
    2. You should be able to print in any format from the web. You may need to adjust your destype/desname/desname parameters.
    3. Only thing I can think of here is that maybe the original report was not written using a standard web-friendly font?
    4. There's a couple of ways you can get data into an excel file:
    A. Use DDE and poke the data right into it (messy when you need to print the regular Oracle report too).
    B. Add an option to print to file and set the desformat to DELIMITEDDATA. Be sure to go through the data model and set Exclude from XML Output to 'Yes' for fields you don't need. Also, be aware that this may not come out in the same order as they do on the printed report. You can read about this on Metalink.
    Hopefully that helps you a little bit. :)
    Chad

  • DTAUS0 payment format - no carriage returns

    Hi
    I am configuring file formats for data exchange with the bank. I notice that the standard format for Germany uses the format DTAUS0.
    However when I create the file there are no 'carriage returns'. the file is just one long string.
    How do you build in carriage returns, when there is no payment medium workbench?
    thanks
    Liz

    The official format DTAUS0 generated by RFFOD__U does not contain any
    carriage return characters, so no CR/LF characters are inserted into
    file. This would be the reason why you get very long lines with no
    end.
    If you need to have <CR/LF> in your DME file, please, you have to
    modify in the Include RFFORI04.
    BR, Hana

  • What is escape character for for Carriage Return, Line Feed, Form Feed

    Hi
    I need to a text file which should have following characters
    Carriage Return, Line Feed, Form Feed
    How do i insert them in a string
    i know "\f" is carriage return,
    but what are characters for line feed and form feed
    Ashish

    uncle_alice wrote:
    jverd wrote:
    remus.dragos wrote:
    I forgot that it does not exist in Java. A good thing
    from my point of view.Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    >
    >
    >I forgot that it does not exist in Java. A good thing
    from my point of view.
    Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    } Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    Ah, I thought he was saying Java doesn't support ringing the bell.

  • Stripping variables for carriage returns

    Hi all, would appreciate any thoughts on this problem......
    Using the Show Me ODBC piece as a guide, I've successfully
    imported a table
    from an access database. The table comprises three fields
    [ID], [Question],
    [Response] which are stored as a variable called DB_ODBCData.
    This variable
    looks something like this:
    "1\tQuestion bla bla bla\tResponser bla bla
    bla100\r2\tAnother question bla
    bla\tAnother response bla bla\r3\Question 3 bla bla........ "
    etc etc
    I was then able to split this into three separate variables
    (eg. varID,
    varQuestion, varResponse) by sorting DB_OBDCData as a list.
    Everything
    looks fine and I'm able to display the correct field in the
    correct
    variable.
    However, if there is a carriage return in the actual field in
    the database,
    for example.....
    Can you confirm the times the following evidence were found:
    1) the watch
    2) training shoe
    ....this messes up my variables. It treats the carriage
    returns in the
    questions as an end of field, consequently (in the example
    above) "Can you
    confirm...." would be assigned to varQuestion correctly, but
    "1) the watch"
    ends up in varResponse, and "2) training shoe" ends up in
    varID
    I have tried to use the Authorware STRIP command to remove
    unwanted carriage
    returns from the DB_OBDCData variable, but this is
    unworkable. It won't
    recognise the carriage returns as anything other than "\r",
    which
    consequently strips away all the field separation and leaves
    everything in
    one big variable!
    Any clues guys as to how I can overcome this problem? I know
    the easiest
    thing would be to ensure there were no carriage returns in
    the actual
    database fields, but for other reasons this is impossible to
    achieve.
    TIA
    Reg.

    You could have just replaced it with something short, like
    "~". But
    whatever.
    "RegTheDonk" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thanks everybody for your help :-)))
    >
    > Amy, the actual data within the database is inserted "on
    the fly" by
    > students. Its part of a system that is used for
    communicating in critical
    > incident simulations - they type in a question which the
    "control room"
    > answers appropriately. As time and pressure is a factor,
    they won't
    > adhere
    > to any specific rules like not using the carriage
    return, or using special
    > characters like ~ etc. So Im stuck with what I've got,
    > unfortunately....(they won't be to fussed about the
    spelling or grammer
    > either lol!)
    >
    > Steve, I'm unable to modify or control the table
    structure as the
    > databases
    > in question are part of a larger, non-open source
    programme, specifically
    > written for the above purpose. The reason I've been
    asked to get involved
    > is to make a kind of "3rd party application" where
    observers can view the
    > communications between students and trainers, to assist
    their own
    > debriefing
    > sessions. The main programme was developed by a company
    which offers no
    > real support, so its up to the clients to try and make
    any improvements on
    > the system themselves.
    >
    > Fortunately, as the first field [ID] always starts with
    a number, I tried
    > a
    > variation of Mike's idea and did a series of REPLACE
    statements on the
    > variable; eg:
    >
    > tempString := Replace("\r1", "carriagereturn1",
    tempString)
    > tempString := Replace("\r2", "carriagereturn2",
    tempString)
    > tempString := Replace("\r2", "carriagereturn3",
    tempString) etc etc,
    >
    > .... I then STRIPed out all the returns "\r" that were
    left, which
    > eliminated any returns that the students had typed
    themselves....
    >
    > .... I then re-REPLACEed the "carriagereturn1" with
    "\r1" etc.
    >
    > Its a bit long winded, but blow me - as long as a
    student doesn't start an
    > input with a number (which should never happen) it
    works!
    >
    > Thanks again everyone for your suggestions....doubtless
    I'll be along with
    > other problems as this thing gets bigger! lol
    >
    > Cheers,
    >
    > Reg.
    >
    >

  • Workaround for carriage returns?

    I am testing a workaround for the extra linefeeds/carriage returns than the software introduces automatically while typing a message, and it seems to be working just fine. The workaround was posted here:
    http://forums.adobe.com/thread/609762?tstart=0

    This message was written normally; no Ent
    ers or Backspaces before starting to type. Obviously, the probl
    em is still here without the workaround, but seems to go if I firs
    t type the two Enters.
    Extra linefeeds kindly provided by the software.

  • Silent install for patch release 3 waiting for carriage return

    I'm trying to get Patch Release 3 (to take my 10.2.0.1.0 installtion to 10.2.0.4.0 on Linux RHEL 5/x64) to install using a ResponseFile so it can be scriptable.
    The actual silent install works fine - the problem lies with the patch install - it waits for the carriage return to be pressed oce it has been installed. And since its waiting for the Return key to be pressed, the script hangs.
    The command I'm running is
    +/oracle/staging/10g/patch/Disk1/runInstaller -ignoreSysPrereqs -silent -responseFile /oracle/staging/10g/patch.rsp << EOF+
    EOF
    I'm not even sure where to start looking to solve this issue.
    Can anyone point me in the right direction please...

    Hi;
    Did you follow patch 8.2 Installing the Oracle Database 10g Patch Set Noninteractively part?
    Also see:
    ERROR:Oracle 10.2.0.4 Patch Set Return Exit Code -1073741819 [ID 779582.1]
    OUI reports a successful silent install when errors are present [ID 793510.1]
    Regard
    Helios

  • Textarea formatting for read-only display

    Hello,
    I currently have a textarea field that is on a data entry screen, which can be displayed as editable or read-only, based on certain criteria. I noticed that when text with line breaks is entered into the textarea, it keeps these line breaks as expected when viewing the record again in edit mode. However, when the record is read-only, and the textarea is showing as read-only text, the formatting has been an issue -- all of the text is run together as if it were one continuous line. In the Label area of properties for the textarea, I added in <PRE> in the Pre Element Text value, and </PRE> for the Post Element Text, to retain formatting of the text. The good news is that now the text formats properly in edit or read-only mode; however, if a long amount of text was entered before a line break, when viewing the textarea as read-only, the text goes on and on far past the right edge of the screen so a lot of scrolling must be done to read the text.
    Is there some property or workaround I can use to restrict the width of the text showing when read-only, so the text will wrap but also maintain line breaks? I don't want to change any properties that will cause the edit view of of this textarea to function any differently. In a nutshell, I'd like to be able to have the text wrap, but still show the line breaks.
    Thanks in advance,
    Brian

    Yes, I had the same issue.
    Read only with textarea .
    It is not fixed in 3.0 version I don't know if it is in 3.0.1.
    My workaround was to use javascript to change the property of the textarea to readonly on page load event upon certain condition, something like :
    if ('&P8_EMP_TYPE.' != 'EMP' || '&P8_DATE.' != ''){
    document.getElementById('P8_EMP_COMMENTS').readOnly = true}
    You should be able to do something similar with most conditions, if you find a better workaround pls let me know.
    George

  • Carriage Return Problem

    Hello,
    I have written some code which extracts data from a MySQL
    database and stores it in a CSV file using CFFILE.
    However, the database includes data inserted from an HTML
    textarea form element which is stored in a MySQL text field. The
    textarea data includes carriage returns which, when written to a
    CSV file, force a new line which makes the data messy.
    Is there a way of removing the carriage returns?
    Many thanks,
    Simon

    I recently had to deal with a similar situation. The
    differences are:
    1. My file is pipe delimited.
    2. My source data comes from a vendor application, not an
    html form.
    The following code worked for me.
    <cffile action="write" nameconflict="overwrite"
    addnewline="no" output=""
    file="d:\dw\dwweb\work\#CaseFileName#">
    <cfoutput query="casedata">
    <cffile action="append"
    file="d:\dw\dwweb\work\#CaseFileName#"
    output="#caseid#|strip a bunch of
    fields|#theatre_mcase#|#Replace(pre_op_diag, chr(10), ' ',
    'all')##chr(13)#">
    </cfoutput>

  • Carriage Returns in Message Area

    Hi,
    I am using a hidden field "P6_SUBMIT_MESSAGE" to store a message that gets generated from a PL/SQL process. I then use the following trick to display that same message in the message area at the top of my page
    Process success message
    &P6_SUBMIT_MESSAGE.
    How can I get carriage returns into this message. I have tried adding chr(10), chr(13) and even '<'br'>' in the PL/SQL process but no luck. If I use chr(13) and my P6_SUBMIT_MESSAGE is a Textarea (not a Hidden field) I can see the desired results in that text area but even then, the carriage returns are not propagated to the message area at the top of the page.
    Thanks

    I know this is not my thread but i just wanted to say, thanks scott! this works! i'm having the same problem as Robert and tried every possible way like he did with the ch(10) and < b r >... but did not realize to change the page item type, i had it as text area also. Now i changed it to display text (does not save state) and used < b r > for carriage return... it works like a charm!
    Thanks again,
    Marilyn

  • How to retain carriage return and spaces in a report..

    Hi everyone,
    I have a TEXT AREA where users enter comments in that like
    First record
    Hi           Carriage returns          spaces
    Second  record
    Hi
    carriage returns
    spaces
    Third record
    Hi
         carriage returns
                                 spaces
    Is it possible to retain the carriage returns and spaces when i am displaying the records in a report.
    For carriage returns i replaced  chr(10) with '
    (without the single quotes). I works fine. But how i can i retain the spacesplease give me some suggestions
    Thanks
    phani

    Hi dimitri,
    Thanks for the reply
    For carriage returns i am doing like this replace(column_name,chr(10),'<"br">') (Ignore the double quotes)
    For spaces is there any ASCII code like chr(10) for carriage returns..
    I mean how to identify Number of spaces in database..
    Thanks
    phani
    Message was edited by:
    phani marella

  • Barcode Carriage Return Function not working in Forms 6i

    Dear All,
    I m using Oracle Forms 6i with OS Windows 2000 Professional
    When I receiving Data from Barcode slot reader RS232 interface, carriage Return funtion not working in the forms 6i for e.g Barcode is *12345$M*
    ('$M' for carriage return). Full ASCII code enabled in my slot reader and carriage return switch is also on, its working fine on note pad.
    Please help me in this regard
    Thanks in Advance

    Hello Muhammad,
    Thanks for your reply, but unfortunately, this would not work.
    Indeed, when I scan a barcode, the cursor is already in the text field and no event is triggered.
    This idea is not to replace the Carriage Return but to have a When-Validate-Item with the Carriage Return sent by the barcode reader.
    In Forms, when I scan in a multi-lines text field, the string is displayed and the cursor goes to the next line
    But when I scan in a single line text item, it displays the strings but nothing else.
    Kind Regards,
    Olivier

  • Insert carriage return into string

    can someone tell me how to insert chars like carriage return in to strings in Labview 6.1 ?
    Thanks

    under the string subpallette you will have the ability to use constants for carriages return, tab, etc. Also when on the front panel you can right click on any text indicator or control and select Codes Display. This will allow you to see the /n's. Hope this helps.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor

  • On Windows 8.1 and Firefox 36.0.1 the textarea in forms has no carriage returns. Earlier versions the forms work. Is there a fix for this?

    Prior to this version of Firefox 36.0.1, the <textarea> in my HTML forms was working; displaying carriage returns. In version 36.0.1 they no longer function properly. Instead when I enter a carriage return, it displays a space instead of a newline. I went to the most basic textarea testing
    &lt;textarea&gt; name="comments" cols=20 rows=10 &lt;/textarea&gt;
    to make sure I wasn't introducing anything with other languages.
    I am using Windows 8.1 Pro. I rolled back to Firefox 35.0 and everything works fine. I install 36.0.1 and it stops working.
    I have access to another Laptop also running the same version of windows and Firefox and it appears to be doing strange things as well. I am suspicious in that I started noticing this immediately after a windows upgrade last night. The laptop also experienced the issues it is having immediately after a windows update yesterday evening.
    I have yet another PC running a different version of windows and Firefox and it too works fine. It looks like the issue is where there is windows 8.1 Pro and Firefox 36.0.1.
    Do you guys have any idea what is going on here?
    Thanks
    JMRAUPE57

    The current release supports the white-space property for a text area and it is possible that the website uses white-space: pre instead of white-space: pre-wrap.
    The former will prevent Firefox from wrapping the text.
    You can check that in the Inspector via the right-click context menu.
    *https://developer.mozilla.org/Tools/Page_Inspector
    See:
    *https://developer.mozilla.org/en-US/Firefox/Releases/36#CSS
    <blockquote>The white-space property is now working on <textarea> HTML elements (bug 82711).</blockquote>
    See also:
    *[[/questions/1050456]] Word wrap problems in 36.0

Maybe you are looking for

  • Display Adapters included?

    I just sold my early 2008 macbook air and can't wait to get the new macbook air! They're awesome computers and I'd reccommend them to anyone who puts a premium on portability and great customer service on Apple's part. But aside from that, I'm a litt

  • Missing background colour in image rollover in IE

    Just noticed I have a missing image background colour on a rollover link - it's fine in firefox and safari, but awol in IE(6). link here The CSS looks like : a:link img { padding: 5px; border: 1px solid #999999; a:visited img { padding: 5px; border:

  • Form function security (how to make form Updatable)

    Hi...friends... I have one standard oracle form. Data of that form is updatable in 11.5.7 instances...I can insert,update and delete. But, we had upgraded Apps to 11.5.10...so, now the same form data is not updatable..I can insert, but cant delete or

  • I recently downloaded Photoshop Elements 9. Should I buy Elements 11?

    Should I first try to grasp all the major fundamentals in "9" or go right to "11"? Is it earier or more user friendly?

  • How to split file dynamically into multiple files according to row result

    Hello, I want to split and create new document after specific data by using BI Publisher. Can anyone help me. For e.g. I am running a report and it is giving 5 result rows and it is generating one file with all the 5 result rows but is it possible to