Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to insert rows with new line character in table in Apex 4

AMYGANGANJun 10 2016 — edited Jun 21 2016

Hi all,

I try many ways to display the new line character--CHR(10) in a report in Apex 4 but fail.

The outlook of the report need to be something like this:

------------------------------------------------------------------------

          ID #              |              Info

------------------------------------------------------------------------

    2937469812      |   updated successfully in table 1.

                              |   no data found in table2.

                              |   updated successfully in table3.

                              |   ........

-----------------------------------------------------------------------

The report display a row in a tracking table with a particular ID #.

I ran the following SQL in Apex SQL workshop, and the new line character is missed in the table.
INSERT INTO TRACKING_TABLE (ID, INFO) VALUES (2937469812 ,'updated successfully in table 1.' || CHR(10) ||  'no data found in table2.');

I also tried to insert the data with CHR(10) into a table in a remote database and the new line character is still lost. The inserted result is something like:

-----------------------------------------------------------------------------------------------------------------------------------------------------

          ID #              |              Info

-----------------------------------------------------------------------------------------------------------------------------------------------------

    2937469812      |   updated successfully in table 1. no data found in table2. updated successfully in table3........

-----------------------------------------------------------------------------------------------------------------------------------------------------

Does somebody know how to insert/display the new line character in Apex report?

This post has been answered by Bharat G on Jun 10 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2016
Added on Jun 10 2016
6 comments
1,336 views