Reports not retaining carriage returns from htmldb_item.textarea

I’m created a tabular form for multi row updates using htmldb_item.textarea for one of the fields. When I update the tabular form it keeps any carriage returns in this field, which is good. I then created a “PL/SQL function body returning a SQL Query” report for printing purposes. The problem is that the field populated by the htmldb_item.textarea does not retain any of the carriage returns in the report.
I enter the following in the textarea on the tabular form:
Line 1
Line 2
Line 3
The report I created then displays the data as:
Line 1 Line 2 Line 3
I need the report to display the data the same as it appears on the tabular form.
I tried this in my report from reading other similar situations on this forums, but didn’t work.
replace("TEXTAREA",''||chr(13)||'',''||
||'') as title
Anyone know of a solution?

How about this?
Go the page where you can edit the report column attribute - here is the bread crumb to help you figure out what I am talking about
Home>Application Builder>Application 99999>Page Definition>Report Attributes>Column Attributes
The second box in this page is Column formatting, you will find 4 text boxes (Number / Date Format, CSS Class, CSS Style, Highlight words) and a text area (HTML Expression). In the text area replace #COLUMN_ALIAS# with <PRE>#COLUMN_ALIAS</PRE>. You will get your newlines without tweaking the query or removing Strip HTML. Strip HTML is a security feature that I would not disable. On the down side you will loose some of the ability to format like fonts etc (:-(,
Here is why you loose the newlines in the report. When browsers render html they have the liberty to reformat it. When reformating they can play around with whitespaces including new lines. To force a new line you have to use the BR tag or you can say the text is preformated using the PRE tags.

Similar Messages

  • Removing Carriage Returns within a Textarea

    Hi,
    Just wondering if someone could please let me know how to remove carriage returns from a Textarea after submitting the page?
    Within my PL/SQL process, I have used both REPLACE and TRANSLATE on both CHR(10) and CHR(13) but unfortunately it stills comes out the other end as follows:
    Description :this
    is
    a
    testWould like it all on one line minus the carriage returns.
    Thanks.
    Tony.

    The code I showed works for me. Computations and processes work similarly except that in a process you have to save the value in session state whereas in a computation that's done for you. Show your code or put an example on apex.oracle.com if you can't get it to work and I'll check it.
    Scott

  • 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

  • Carriage returns in a textarea are not being stored ??

    Hello developers,
    Ive been looking a couple hours for a solution but cant find it.
    In my app users enter text into a textbox like im doing now.
    When i want to display the text it has lost the carriage returns.
    Im using tomcat and mysql here.
    A solution to deal with the returns ?

    Super thanx, kinda stupid of me i once used that <pre> a couple years ago..
    Its working fine now execpt for the fact tha i have one space before the text starts
    Like this
    sfslfj
    sfsafa
    afsasff
    produced by this code
    <sql:query var="empList" scope="session">
              SELECT * FROM vragen
              ORDER BY vraagnr ASC
         </sql:query>     
         <table width="90%" border="1">
         <c:forEach items="${empList.rows}" var="row">
    <tr>      
    <td border ="0"><c:out value="${row.vraagnr}"/> <td/></tr>
    <tr><td> <pre> <c:out value="${row.vraag}"/> </pre>
         </td>
         </tr>
         </c:forEach>
         </table>

  • Remove carriage returns from a field in an oracle table

    I have a field that is defined as a LONG in my oracle table; the data contained in this field has carriage returns/line feeds (it's free form text); as i'm selecting data from this field, i need the carriage returns removed so that the data from this field all appears on one line.
    I tried using the TRANSLATE function to convert the carriage returns to something else, but that doesn't work.
    Example:
    Select comment from Notes:
    COMMENT
    the applicant called for an appointment;
    an exam was scheduled for 4/1/05 at 9am;
    called applicant to confirm app
    this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled for 4/1/05 at 9am; called applicant to confirm app"
    How can i do this? Can the decode function be used to remove the carriage returns in this field?

    when i used translate its giving correctly,
    SQL> ed
    Wrote file afiedt.buf
    1 select translate('the applicant called for an appointment;
    2 an exam was scheduled for 4/1/05 at 9am;
    3 called applicant to confirm app
    4 this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled
    5 How can i do this? Can the decode function be used to remove the carriage returns in this field
    6* ',' ') from dual
    SQL> /
    TRANSLATE('THEAPPLICANTCALLEDFORANAPPOINTMENT;ANEXAMWASSCHEDULEDFOR4/1/05AT9AM;CALLEDAPPLICANTTOCONF
    the applicant called for an appointment; an exam was scheduled for 4/1/05 at 9am; called applicant t
    SQL> ed
    Wrote file afiedt.buf
    1 select 'the applicant called for an appointment;
    2 an exam was scheduled for 4/1/05 at 9am;
    3 called applicant to confirm app
    4 this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled
    5* How can i do this? Can the decode function be used to remove the carriage returns in this field
    SQL> /
    'THEAPPLICANTCALLEDFORANAPPOINTMENT;ANEXAMWASSCHEDULEDFOR4/1/05AT9AM;CALLEDAPPLICANTTOCONFIRMAPPTHIS
    the applicant called for an appointment;
    an exam was scheduled for 4/1/05 at 9am;
    called applicant to confirm app
    this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled for 4
    How can i do this? Can the decode function be used to remove the carriage returns in this field?
    SQL>

  • Remove Carriage Return from a TextEdit field

    Hi All,
    I have a tableview, of which the last field Description, is of type TextEdit. Not only this, when the data was migrated from a legacy system to SAP, either the last field with the value (If Description has value, Description field, else the field before Description) has 2 '##' at the end of it.
    The 2nd # is EQ to
    cl_abap_char_utilities=>newline
    , which I can remove using
    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN <fs> WITH ''.
    But the first # is having the Hex Value 0D00, which is EQ to Carriage Return. CR_LF is Carraige Return and Line Feed, but here, I need to remove only CR.
    Can anyone give me the right solution?
    I tried moving this data to a string field and then do a REPLACE All... IN BYTE MODE, but again, it didn't work.
    Thanks and Regards
    Gladson Jacob

    Hi Patrick,
    The program's ending with a Short Dump. The code snippet is as below.
    DATA: it_contract TYPE TABLE OF zbpa_bp_contract,
          xstring_val TYPE x VALUE '0D00',
          value2 TYPE x VALUE '2000',
          string_value TYPE string,
          xstring_value TYPE xstring,
          stringtable TYPE TABLE OF string,
          reply_value TYPE TABLE OF tline.
    FIELD-SYMBOLS <fs> TYPE zbpa_bp_contract.
    SELECT * FROM zbpa_bp_contract
      INTO TABLE it_contract.
    *  WHERE id BETWEEN 2316 AND 2328.
    LOOP AT it_contract ASSIGNING <fs>.
      string_value = <fs>.
      APPEND string_value TO stringtable.
      CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'
        TABLES
          text_stream = stringtable
          itf_text    = reply_value.
    ENDLOOP.
    The dump description is as follows
    Error analysis
        At the statment "DESCRIBE" only character-type data objects are supported at the argument position "TEXT_STREAM", but no strings are supported (data types STRING and XSTRING).
        In this particular case, the operand "TEXT_STREAM" has the type "g".
    <b>Please help.</b>
    Thanks in advance.
    Gladson
    Message was edited by:
            Gladson Jacob
    Message was edited by:
            Gladson Jacob

  • Escaping carriage return characters in textarea

    Hi all,
    I have a HTML form containing a textarea field which users might us the carriage return.
    This form is then submitted to a processing servlet which saves the data to the database.
    Subsequently, I have another page which will retrieve the data using JDBC and and display these in HTML.
    Here's the problem:
    How do I replace the carriage return characters (seems from the database that there are 2 of them) with <br>?
    I've tried using the String.replaceAll("\r\n", "<br>"), but it didn't work :-(
    Thanks!

    Becuase you enter your patterns as expressions where some characters are used as control characters, and then have to esacpe some of the control characters in the expressions when you enter them as java strings.
    So the expression is actually \r\n if you let a user enter it into a textfield, but you have to escape the \ if you write it as a String in the source code (since \ is an escape characters in strings)
    /Kaj

  • Calendar task entries do not show carriage returns...

    Hi,
    maybe somebody in this forum can help me with a weird problem with my Nokia N9.
    Whenever I sync task entries of my calendar all carriage returns in the task notes are lost and if I change the entry on the Nokia N9 end also the carriage returns are lost after a sync on my Exchange account.
    When changing or syncing appointments with notes all works fine. My feeling is, that there might by a problem with the database setting for task entries in the Nokia N9 calendar. Any ideas?
    I am using PR 1.3 and German as the system language.
    Thanks for your help!
    Tiberius

    I looked a little bit deeper to understand the root cause of the issue and extracted the SQLite database at  /home/user/.calendar/db. Looking at the different entry types like event, todo, etc, all notes are stored correctly with carriage returns. So it does not seem to be the database itself.
    Is it then the presentation and editing of a task item compared to an event item which makes the difference?
    Is this a bug I can solve by myself e.g. by altering some settings?
    Is Nokia going to do something about this because my Nokia N9 is still under warranty bought in November 2012?
    Can anybody help with some insights into the calendar application of the Nokia N9?
    Thanks,
    Tiberius

  • SoundMax audio driver did not load after returning from StandBy.

    After my computer returns from StandBy, it shows me this message. "The SoundMax audio driver did not load. You may need to reinstall SoundMAX". I have downloaded and installed the latest driver that was supposed to fix this issue on Windows XP T61. Is there another solution?

    Hi,
    I wanted to confirm, that this issue occurs also to me, and started happening recently. Also the driver sometimes does not start when simply booting clean (not returning from StandBy). I'm not sure,  but I think this started happening after some driver update (I do upgrade my drivers when lenovo updates them hoping they'll fix some of the annoying glitches, but this is what I usually get...).
    My machine is: lenovo t61 7664-19G
    And I also have: windows XP
    If someone more tech-able would like to investigate this, I would be happy to supply all the details.

  • Displaying carriage returns from database query

    hi i'm fairly new to colfusion but have a good basic
    understanding.
    i'm trying to build a community website that has a guestbook
    and forums. i want to build these from scratch.
    i'm using cfmx7 and sqlserver 2005.
    the problem i'm having is when my cfm page retrieves posts
    made to the guestbook or forum, the carriage return characters are
    missing. posts are coming out all on one line.
    how do i get the retrieved posts to display new lines and
    paragraphs the way they were input into the database?
    just like these forums do?
    thanx so much. adella.

    Here is the code. Just replace body with your db field name.
    <cfoutput>
    #Replace(body, newLine, "<br>", "ALL")#
    </cfoutput>

  • Remove Carriage return from string

    I have a free text area on a BSP (a form). When users type continuously in this area the text gets wraped. When the BSP is submitted it generates a sapscript form and the text area is printed on the form, but it has '##' which are placed where the text wrapped round. I would like to remove '##', so tried the following:
    replace all occurrences of '##' in text_area with ' '.
    This did not work as the '##' are not recognised presumably because they are some type of carriage return and not in fact has marks.

    If you dont have access to the class CL_ABAP_CHAR_UTILITIES, do this instead:
    DATA: crlf(2)   TYPE x VALUE '0D0A',
          itab      TYPE TABLE OF string,
          w_input   TYPE string.
       w_input = '<contains the text with the line feed.>'.
       SPLIT w_input AT crlf INTO TABLE itab.
    Regards Michael.

  • Browser not connecting after returning from sleep, but email and imessage working fine

    My Browsers are not able to access the Internet after returning from sleep. This effects other browsers (Firefox & Chrome) as well. The connectivity from mail and iMessage is working fine. I am also hardwired and not using WiFi.

    I have the same problem since updating to Yosemite, works fine after restarting but once it goes in to sleep it affects email as well as browsers, I have a broadband connection. Also accessing the app store is hit and miss, it's either working or simply not not working.
    It also affects other devices trying to connect to the internet over wifi via the airport time capsule, the problems started after installing Yosemite.

  • Contribute strips carriage return from javascript

    Hi
    Has anyone had a problem where carriage returns are stripped from javascript by Contribute?
    If the code is
    <script>
    <!--
    script here
    //-->
    </script>
    It ends up as
    <script><!--script here//--></script>
    and it doesn't run because it is all commented out.
    Does anyone have a solution apart from removing the comment code?
    Administration of the site Editing setting is set to "Allow unrestricted editing" with "Protect scripts and forms" checked.

    Thanks. I finally got it to work.
    Doing the replace on the original page still got stripped. It didn't like chr(10) or chr(13). It did find /n though.
    I had to trigger a function to globally replace all the /n's with dummy text. Then, on the popup page, I had to create a function to globally replace the dummy text with /n's; and trigger in Footer section.
    What a pain, just to end up with you already had in the 1st place. lol

  • Captivate 4 Course is resuming in LMS, but not retaining slides viewed from previous session

    We have published our Captivate 4 course as Complete/Incomplete using SCORM 1.2 to SumTotal 7.2 and are having a problem getting the course to complete after a resume.  We want the user to view 100% of the screens in order to complete the course.  If you exit the LMS at some point before the end the LMS bookmarks the place and will resume where you left off.  The problem is it does not retain the data saying the slides before the resume have been completed (no green checkmarks in the TOC) so when you get to the end of the course the LMS will not mark it completed unless you go back and view the slides before the resume (which were viewed in the previous session).
    I am not sure if this is an LMS or a Captivate issue. Our LMS person is saying this is a Captivate issue because other departments in our company publish courses in Articulate and this feature works fine in the LMS for their projects.
    Any suggestions or insight would be appreciated.  Our internal academy will not let us publish the course to our users unless we can resolve this issue.
    Thanks!
    Terry

    Thank you so much for the reply.  I found on the Table of Contents settings that I did not have Self-paced learning checked and thought that would fix the issue when I republished and uploaded to SumTotal, but I am still having the same issue.
    One thing I did notice is the Exit button on the Captivate skin playbar is not working so I have to use the SumTotal exit button to exit the course.  I was wondering if the status flags are not being retained on exit because we are not able to exit through the Captivate Playbar.  We are going to try disabling the SumTotal playbar to see if that could be the issue.
    Has anyone had any similar issues with the Captivate playbar exit that could provide some insight?
    Thanks again.
    Terry

  • Date data from Web Intelligence Report not equal to Date from Source

    Hi,
    I am creating a Web intelligence report based on a BEx query. I have a field called 'Date' that I am bringing over from the BEx query. It has a format of MM/DD/YYYY. When I view the 'Date' in Web Intelligence, it is displaying as 1/1/70. For example, in the BEx Query, 'Date' = 11/01/2011. In Crystal Reports, it is showing up as 1/1/70 as the only date. The source field contains more than 1 date.  I'm not sure what's going on. I am using the 14.0.0 (2010) version of the Web Intelligence through the BusinessObject Launch Pad.
    Please help!
    -Janice

    Hi
    The patches for SAP BusinessObjects BI4.0 are accumulative.  This means you can download the latest patch (for the Support Package that you have installed) and it will have all the patch fixes
    It looks like older patches are being removed from the sites & only the most recent patch or patches are available since they are accumulative
    I believe Patch 2.15 should now be available, but anything later than Patch 2.6 should help you in this instance
    I hope this helps
    regards...ian

Maybe you are looking for