Carriage Return for text area

Hello All,
I have a text area that I am pre-populating from a column in a database and I need to do a carriage return. When inserting the information into the column I put 'chr( 10 )|| chr( 13 )||' after each place where I need to do a carriage return, for some reason it is not being saved in the database that way.
The sql I used to insert the information into the column looks like:
update 456.xyz
set 123 = a || chr( 10 )|| chr( 13 )||
b || chr( 10 )|| chr( 13 )||
c || chr( 10 )|| chr( 13 )||
where abc=def;
I need the output in the text area to be:
a
b
c
But it populates as:
abc
Any help would greatly be appreciated!

I just tested this code:
select 'The date '||sysdate||chr(10)||'is a '||to_char(sysdate, 'DAY')||chr(10)||chr(13)||'Week :'||to_char(sysdate, 'WW') from dual;The output was:
The date 03.06.2010
is a TORSDAG
Week :22I put this in the source of the textarea and set it to update and replace content ( source used always )
Edited by: Olav Alexander Mjelde on Jun 3, 2010 1:17 PM

Similar Messages

  • 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

  • Carriage Return in Text Node of SmartForm

    Hello SAPients.
    I'm working with a Text node in a SmartForm. I'm using "Include Text" to call an existing text. The text loads fine except that it doesn't respects the CR's.
    What can I do?

    Hello SAPients!
    I'm still having this problem, maybe I didn't explain the problem very well and that's why I didn't get an answer. I hope this information be more helpful:
    I'm working in SAP 4.6C. I have a SmartForm with a Text Node that shows "unlimited" text. I created another transaction to maintain this text in a small text editor and save the text using FM SAVE_TEXT and retrieve it using FM READ_TEXT and it shows everything correct.
    In the SmartForm I'm taking advantage of the option "Include text" in the Text type of the General Attributes of the text node. The system retrieves the text in a normal way, except that the text is shown without Carriage Return, that is, all the text is show in one single line. Do you know why?
    Thank you in advance for your help.

  • Remove carriage return between text two objects

    How to remove carriage return between objects. 
    I have a text box and table  I want to remove carriage return between them. 
    Also I have a table with two columns and I want to remove carriage return between these two columns.
    Thank You in advance.

    Hi ,
    Try like this ,
    --To replace Carriage return
    =REPLACE(Fields!Column.Value, CHAR(10), "" )
    --To replace Line feed
    =REPLACE(Fields!Column.Value, CHAR(13), "" )
    --To replace Tab
    =REPLACE(Fields!Column.Value, CHAR(9), "" )
    And also , ConsumeContainerWhitespace property to remove blank space -
    http://beyondrelational.com/modules/2/blogs/115/posts/11153/consumecontainerwhitespace-property-to-remove-blank-space-in-ssrs-2008-report.aspx
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • ButtonMode for Text Area

    Hi,
    I'm hoping to use text areas as "buttons."  After setting a text area's buttonMode = true and editable = false, still no "hand."  Can this work?
    Thanks.
    Doug

    I tried this, but still no hand.  Please let me know if I implemented correctly (code below).  I wondering if my Flash Player might be the problem.
    <s:TextArea 
    x="1" y="87" width="147" height="42" text="5. Complete and Assign&#xd; in COMIT Tracking" borderVisible="false" toolTip="line one of text line two of text etc etc etc line three of text line 4 of text and on and on" useHandCursor="true" buttonMode="true" editable="false"/>
    Thanks.
    Doug

  • Disable Return in text area?

    Anyone know how to prevent the user from putting carriage
    returns or line breaks in the TextArea component? (without checking
    all the key input)
    Thanks,
    Art

    Its a multi-line component, so I would think that apart from
    extending the standard TextArea to a custom component, you wouldn't
    be able to do it, and even in that case I would think you would
    need to check user input/keystrokes.

  • Print Preview for Text Area in Web UI

    Hi,
    The notes section has text area in WEB UI. After typing in the text with more than 10 lines, and directly going to browser's print preview is not showing all the text entered. Instead it shows only 5 lines of text. But my client's requirement is to see all the text and take print out. I tried chaning the CSS of THTMLB_STYLES ( thtmlb_stand.css) with the below statement, but it didnt work.
    <style>
       @media print {
          content {
             overflow: visible;
    </style>
    Please suggest a solution.
    Thanks
    Manassha

    Hi ,
    Can you please elaborate on this.
    I have tried doing what you said but didnt face any issue....
    Regards,
    Ravikanth

  • Carriage returns in text box comments

    Hi I am new to Acrobat (using Acr
    obat Pro 9) and I have found that when I add text to a text box it does not seem to recognise the carria
    ge return. It seems to do when I type than when I click out of the box the CRs dissappear.
    I have resorted to adding a space which does not seem correct.
    Is there a setting somewhere?

    Whenever you append a line of text to the StringBuffer you also append the newline string for your platform which you can get from the System.getProperty(...) method. For a list of properties, see the getPoperties() method.

  • Line indicator for text Area??

    for my text field , I used ::
    TextArea tA01=new TextArea(20,30);
    is there anyway or functions or methods that I can use to locate the current position of my blinking cursor ???
    thanks....

    why do you use a TextArea instead of JTextArea?
    awt components are heavyweight, and most swing components are lightweight.
    awt use the operating system graphic to draw the component (this makes it heavyweight). swing also use the system graphic to draw the component (top level component), but compoents such as JPanel, JButton, JTextArea, etc.. are drawn by the Java application over the toplevel component.
    There are severals advantages of using swing.
    1. your application gui will be rendered more correctly on different operating system
    2. swing have more features that you can use
    3. swing have more components

  • Plain Text Control in Form - Add carriage return in text

    Hi, I'm trying to output a carriage in a Plain Text Control.  I've tried several combinations like CHR('13'), but can't get it to work.   Anyone know how to do this?
    Thanks,
    Ken Murray

    Hi Kenneth,
    did you try "\n" ? Like:
    "Entering a \n new line"
    HTH,
    Carsten

  • Carriage return for double byte

    Does the carriage retrun ( 0D in hex ) differs for single byte and double byte?

    Look here:
    http://www.unicode.org/charts/
    CR seems to have 000D.
    Regards
    Stefan

  • 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.

  • Carriage returns are replaced by blank space in SOAP message.

    Hi,
    i am using SOAP request based website. i am using the weblogic webservices. when we sent any SOAP request to the server, if the SOAP xml message contains any carriage returns(new lines) are replaced by a single balnk space.
    i have a requirement where user can enter details in multiple lines. but by the time when it readched server, the SOAP xml message has changed. all the carriage returns are repalced by a blank space.
    Can you please help how to solve this issue.
    Thanks
    subba.

    What are your trying to accomplish?
    I'm thinking you are trying to get a several 'fields' together as a single 'string'. In which case I'd simply concat the fields together like
    SELECT a, b||' '||c ...
    to create a single string with "contents of b space contents of c"
    If you are trying to get one hundred and one blanks, of make a field 101 characters wide with blank padding, then you want to look in the SQL Reference manual for things like lpad, rpad and trim.

  • Carriage return in TextArea Flash component in Director 11

    Hello.
    I have a very big problem now
    Neither embedded Flash movies with textareas or standard flashcomponent TextArea from Director tool pallete do not react on keyboard button "Enter" pressings. There is no carriage return after ENTER button is pressed. The same with End and Home buttons!!
    Please help with any advise.
    Is that a common bug?
    See attached test.dir file. Try to type something in both textareas and then press ENTER button on keyboard. You should realize then what I'm crying about(((
    Alexey

    I too struggled with this issue. If you're looking for a solution still I have written one. Used the attached script in your Flash document, I spent a few days going back and forth between Director and Flash to figure this one out. Basically what I do is attach a key listener to the movieclip containing the textfield object that on keyDown gets the currently focused textField (this way it will work with multiple textField objects). After that it determines if the enter key is hit and if it is inserts a "/n" break at the selection starting point. The only issue is if you select a whole word in the textField and hit enter a break will be placed at the beginning of the highlighted word and that word will not be deleted. Hopefully this helps.
    -b
    // BY / contempt.productions inc.  10.30.09
    // Director 11.5 fix for bug where dynamic textfields don't register ENTER or RETURN key in Flash sprites
    // Solution involves inserting a \n carriage return wherever cursor insertion point starts.
    // In Flash this adds 2 carriage returns for every hit of the enter/return key
    // In Director 11.5 it adds 1 carriage return
    // Change "body_txt" to represent the dynamic textField object this script is referencing
    myListener = new Object();
    myListener.onKeyDown = function() {
    _global.textFocus = Selection.getFocus();
    // get a string of the path to the currently focused textField object
    _global.selStart = Selection.getBeginIndex();
    // get the insertion point, this is the start of any selection
    var multiText = body_txt.text;
    // get the text from the current textField object
    var theKey = Key.getCode();
    // get the current keyCode (13 is the keyCode for "enter/return" key)
    if (eval(textFocus) == eval(body_txt)) {
    // determine if focused textField and current textField are the same
    if (theKey == 13) {
    // enter key is pressed
    var firstPart = multiText.slice(0, selStart);
    // get the current textField's text from the beginning to the insertion point
    var secondPart = multiText.slice(selStart, multiText.length);
    // get the textField's text from the insertion point to the string's end
    body_txt.text = firstPart+"\n"+secondPart;
    // concatenate the first and second part of the textField's text with a carriage return
    Selection.setSelection(selStart+1,selStart+1);
    // place the text insertion point properly
    myListener.onKeyUp = function() {
    var theKey = Key.getCode();
    Key.addListener(myListener);

  • How can i put three carriage returns (ENTERs) in this script's output?

    I have a script like
    begin
    select tablename list;
    dbms_output.put_line(q'[Altering selected tables' datalength]' );
    for i in 1..x loop
       execute immediate v_sql;
    end;While executing this in SQL*Plus, the output currently looks like
    Altering selected tables' datalength
    ALTER TABLE EMP MODIFY (ENAME VARCHAR2(30 CHAR ))
    ALTER TABLE DEPT MODIFY (DEPTNO VARCHAR2(30 CHAR ))
    ALTER TABLE ARCHIVE_CNG  MODIFY (TMAT_ENABLED CHAR(30 CHAR ))
    .But i need three ENTERs (Carriage Returns) after the text Altering selected tables' datalength.
    ie the output should look like
    Altering selected tables' datalength
    ALTER TABLE EMP MODIFY (ENAME VARCHAR2(30 CHAR ))
    ALTER TABLE DEPT MODIFY (DEPTNO VARCHAR2(30 CHAR ))
    ALTER TABLE ARCHIVE_CNG  MODIFY (TRIGGER_ENABLED CHAR(30 CHAR ))
    ALTER TABLE ARCHIVE_CONFIG MODIFY (USER_ID VARCHAR2(30 CHAR ))
    .

    user659394 wrote:
    What is the difference between a carriage return and a newline ? Aren't they both the same?
    Edited by: user659394 on May 13, 2009 10:28 AMThey are different characters, one is chr(13) and the other is chr(10). Many editors will treat them the same but by default, when you hit the Enter key on your keyboard the character generated depends on your operating system
    Mac chr(13), unix chr(10), windows chr(13)||chr(10)
    That's basically the difference between an ascii and a binary transfer between machines with different operating systems. In a binary transfer nothing is changed in the transfer. In an ascii transfer carriage return/newline characters are converted to the default for the operating system.

Maybe you are looking for