How to insert the character of new line in text raise_application_error process PLSQL?

Hello

I have a message raise_application_error in my PLSQL code that appears in the notification area of the APEX page when triggered.  I would like to put a carrage back to specific points in the message.  I tried the concatenations of Chr (10) and adding "< br >". Neither work.  Any suggestions?  It seems that the notification formatting removes HTML.

Thanks in advance

PaulP

Thanks for your suggestions.  I found the quick and easy solution.

Rather than the use of RAISE_APPLICATION_ERROR (-20001, 'Message...')

APEX_ERROR. () ADD_ERROR

p_message in varchar2,

p_additional_info in varchar2 default null,

p_display_location in varchar2);

See

http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/apex_error.htm#CABDJBGJ

APEX_ERROR. ADD_ERROR renders the HTML code in the p_message then RAISE_APPLICATION_ERROR than don't.

Thank you Lakshmi and fac586

PaulP

Tags: Database

Similar Questions

  • ADF: how to insert the character of new line in the column of VO?

    Hello world

    IM using Jdev 11 G.
    I have a VO with 5 columns appear on the page of the ADF. (VO a total 8 columns)
    column 1 is the combination of 3 columns. I concatenated 3 columns and add the new line character after each column Chr (13).
    VO query works very well as a toad. the columnn displays each column value concatenated after a newline character, but the same query does not work in the ADF.
    The column that is the concatenation of the 3 columns and should display with the new line character does not display the new line character its just concatenation of the 3 values and display on the page.

    Wat could be the solution for this in the ADF?

    Thank you.

    Column does not have the property to escape. It is part of the output text.

    Something like

                        
                            
                        
    

    Arun-

  • How to remove the character from new line at the beginning of the attachment?

    Hi all

    I tried to attach a .dat file that is generated to an external source and send it as an attachment by e-mail with UTL_SMTP, all things work, but the .dat file that is attached in email contains a new line that is Chr (10) on the start line and the content of the file is written to the second line from. This is a part of the code that deals with reading/writing of the attachment of mail to send.

    Someone can help me on this point, is something to be changed in this code?



    UTL_SMTP.write_data (c,
    'Object ' | ': ' || P_SUBJECT | UTL_TCP. CRLF);
    UTL_SMTP.write_data (c,
    "MIME-Version: 1.0 ' |" UTL_TCP. CRLF. -Use the MIME e-mail standard
    ' Content-Type: multipart/mixed;' | UTL_TCP. CRLF.
    ""boundary ="- SECBOUND" ' | UTL_TCP. CRLF.
    UTL_TCP. CRLF);
    UTL_SMTP.write_data (c,
    '- SECBOUND' | UTL_TCP. CRLF.
    ' Content-Type: text/plain; "|| UTL_TCP. CRLF.
    ' Content-Transfer_Encoding: 7 bit' | UTL_TCP. CRLF.
    UTL_TCP. CRLF);
    UTL_SMTP.write_data (c, UTL_TCP.crlf | l_text);
    UTL_SMTP.write_data (c, UTL_TCP.crlf);
    UTL_SMTP.write_data (c, UTL_TCP.crlf);
    -----
    UTL_SMTP.write_data (c,
    '- SECBOUND' | UTL_TCP. CRLF.
    ' Content-Type: text/plain; "|| UTL_TCP. CRLF.
    "name="/inetpub/wwwroot/Novation_Merge/FS_Extract.dat"' |"
    UTL_TCP. CRLF.

    ' Content-Transfer_Encoding: 8 bit' | UTL_TCP. CRLF.
    ' Content-Disposition: attachment;' | UTL_TCP. CRLF. "filename =" ' | p_description |
    TO_CHAR (SYSDATE, 'DD-MON-YYYY') | ".dat" ' | "
    UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);


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

    BEGIN

    l_filehandle: = UTL_FILE.fopen ("c:\temp",
    "FS_Extract.dat,"
    « r »,
    32767);
    LOOP
    UTL_FILE. GET_LINE (l_filehandle, l_buffer, 32767);

    UTL_SMTP.write_data (c, l_buffer |) UTL_TCP. CRLF);

    END LOOP;
    EXCEPTION
    WHILE OTHERS THEN
    NULL;
    END;

    UTL_FILE.fclose (l_filehandle);



    UTL_SMTP.write_data (c, '- SECBOUND-');
    -----
    UTL_SMTP.close_data (c);
    UTL_SMTP. Quit (c);
    EXCEPTION
    WHEN UTL_SMTP.transient_error OR UTL_SMTP.permanent_error THEN
    BEGIN
    UTL_SMTP. Quit (c);
    EXCEPTION
    WHEN UTL_SMTP.transient_error OR UTL_SMTP.permanent_error THEN
    NULL;
    -When the SMTP server is down or unavailable, we do not have
    -a connection to the server. Triggers the call to quit one
    -except that we cannot ignore.
    END;
    RAISE_APPLICATION_ERROR (-20000,
    "Failed to send messages because of the following error: ' |"
    SQLERRM);
    END;



    Thank you

    Amol-

    I remember correctly, a single empty line serves as a separator between the header Mime and Mime body.

    Copy the following code...

    UTL_SMTP.write_data(c,
      '-------SECBOUND' || UTL_TCP.crlf ||
      'Content-Type: text/plain;' || UTL_TCP.crlf ||
      ' name="/inetpub/wwwroot/Novation_Merge/FS_Extract.dat"' ||
      UTL_TCP.crlf ||
      'Content-Transfer_Encoding: 8bit' || UTL_TCP.crlf ||
      'Content-Disposition: attachment;' ||UTL_TCP.crlf || ' filename="' || p_description ||
      TO_CHAR(SYSDATE, 'DD-MON-YYYY') || '.dat"' ||
      UTL_TCP.crlf || UTL_TCP.crlf ||UTL_TCP.crlf);  
    

    .. generates 2 blank lines after the Mime header.

    Delete the last CRLF and see if this fits the Bill.

  • How to transfer the text value of the element with the character of new line between pages?

    Hello

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    Cardel wrote:

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    This is one of the many reasons why it is inappropriate pass strings of characters between the pages through the URL. Instead of using a redirect button, change the button to send the page, then use the conditional calculations to set the values on the landing page and finally access the page using a conditional on submit: before Validation: (after calculation and before Validation and treatment) branch. When you press button terms of use on the calculations and the direction.

  • How to insert the character "&amp;" in the table which is between in a string

    SQL > create table s (ss varchar (10));

    Table created.

    SQL > insert into s values ('2 and 3 ").
    Enter the value 3:
    old 1: insert into values of s ('2 & 3')
    new 1: insert into s values ('2')

    1 line of creation.

    SQL > select * from s.

    SS
    ----------
    2

    SQL > drop table s;

    Deleted table.

    SQL > create table s (ss varchar2 (10));

    Table created.

    SQL > insert into s values ('2 and 3 ").
    Enter the value 3:
    old 1: insert into values of s ('2 & 3')
    new 1: insert into s values ('2')

    1 line of creation.

    SQL > select * from s.

    SS
    ----------
    2

    SQL > drop table s;

    Deleted table.

    SQL > create table s (ss nvarchar2 (10));

    Table created.

    SQL > insert into s values ('2 and 3 ").
    Enter the value 3:
    old 1: insert into values of s ('2 & 3')
    new 1: insert into s values ('2')

    1 line of creation.

    SQL > select * from s.

    SS
    ----------
    2

    SQL > drop table s;

    Deleted table.

    SQL > create table s (ss char (10));

    Table created.

    SQL > insert into s values ('2 and 3 ").
    Enter the value 3:
    old 1: insert into values of s ('2 & 3')
    new 1: insert into s values ('2')

    1 line of creation.

    SQL > select * from s.

    SS
    ----------
    2

    SQL > drop table s;

    Deleted table.

    SQL > create table s (ss nchar (10));

    Table created.

    SQL > insert into s values ('2 and 3 ").
    Enter the value 3:
    old 1: insert into values of s ('2 & 3')
    new 1: insert into s values ('2')

    1 line of creation.

    SQL > select * from s.

    SS
    ----------
    2

    Published by: user10438587 on January 6, 2009 07:57

    Or you can set set off in SQL * Plus, thusly.

    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> show define
    define "&" (hex 26)
    test@ORA10G>
    test@ORA10G> set define off
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> create table s (ss varchar(10));
    
    Table created.
    
    test@ORA10G> insert into s values('2 & 3');
    
    1 row created.
    
    test@ORA10G> commit;
    
    Commit complete.
    
    test@ORA10G> select * from s;
    
    SS
    ----------
    2 & 3
    
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> set define on
    test@ORA10G>
    test@ORA10G>
    

    isotope

  • How to remove a character from new line in a column

    Hi all...

    I have a column in a table in which some data contains a newline character to their last.
    I need to remove the line break characters.

    for example... are data
    "abcd
    '
    (Notice the end of the quote)... I need to get data under... "abcd".

    PLSS help me...
    Thanks in advance...

    Hello:

    select replace(column_name,CHR(13),'') from table_name;
    

    If it does not work, try Chr (10) instead of Chr (13).

    Saad,

  • I can't find how to change the distance between two lines of text

    ureself
    ureself

    I mean the vertical distance between the two lines with mmmmm

    http://codeverge.com/Mozilla.support.Thunderbird/line-spacing-how-to-double-space/1402587

    http://forums.mozillazine.org/viewtopic.php?f=39 & t = 403487

  • How to set the character encoding in Blackberry

    Hello

    In my application, I get the data using http server methods...

    now my question is that, in that the data is seen some like that

    ex: Córdoba, but inside, I do not like this...

    After some R and D, I thought that I have to set the character encoding...

    can someone tell me how to set the character encoding and how I can get all languges in my application

    See below the code for reference

     HttpConnection c = null;
                        InputStream is = null;
                        DataOutputStream os = null;
                        int rc;
        c = (HttpConnection)Connector.open("http://10.10.10.00012:8585CountryDatar;deviceside=true;");
                                c.setRequestMethod(HttpConnection.POST);
                                c.setRequestProperty("If-Modified-Since", "29 Oct 1999 19:43:31 GMT");
                                c.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
                                c.setRequestProperty("Content-Language", "en-US");
                               /* Getting the output stream may flush the headers */
    
                                os = (DataOutputStream)c.openDataOutputStream();
                                byte[] res = net.rim.device.api.system.GPRSInfo.getIMEI();
                                os.writeUTF(net.rim.device.api.system.GPRSInfo.imeiToString(res));
    
                                os.flush();
                                /* Optional, getResponseCode will flush
                                    Getting the response code will open the connection,
                                    send the request, and read the HTTP response headers.
                                    The headers are stored until requested.
                                */
                                rc = c.getResponseCode();
    
                                if (rc != HttpConnection.HTTP_OK) {
                                   throw new IOException("HTTP response code: " + rc);
                                }
    
                                is =(DataInputStream)c.openDataInputStream();
                                 byte[] data1 = new byte[256];
                                 int len = 0;
                                 int size = 0;
    
                                int ch;
                                StringBuffer sb = new StringBuffer();
                               while ( -1 != (len = is.read(data1)) )
                               {
                                    sb.append(new String(data1, 0, len));
                                }                
    
                             data = sb.toString();       //Here data is a string storing all data came from server
    

    Give us a break please.  I have other things to do!

    You set the encoding here:

    SB. Append (new String (data1, 0, len));

    Most of the servers give you UTF - 8, but you know that.  Anyway, if it is UTF - 8 follow these steps:

    SB. Append (new String (data1, 0, len, "UTF - 8"));

  • How to make the icons of new office like netflix?

    original title: the desktop icons

    How to make the icons of new office like netflix?

    Access the Web from Netflix site > right click on a part of the page > create a shortcut > click YES to window next question re shortcut on desktop > is she.

    Double-click the desktop icon to access their web Page.

  • How to restore the configuration in new FireSIGHT (device RMA)?

    How to restore the configuration in new FireSIGHT (device RMA)?

    FireSIGHT need new license again or not?

    Licenses are issues associated with the license key of the management FireSIGHT pole. The key is a combination of the type platform (model) and the MAC address of the server.

    So, Yes, you will need more reissued. The case of the TAC which obtained you the RMA can serve as the basis for a request to the team of licensing for the reissue.

  • HOW to: Insert the symbol of the degree in text

    An another "How To" question.

    Running PE 13.1 on a Windows PC with WIN 7 64-bit.

    How to insert the symbol of the degree in text - I would like to have something like "temperature + 2 < degree symbol > water C.

    where < degree symbol > is the small circle (triggered).

    I found how to insert copyright (Alt + 0169) & the Tilde (Alt + 126) helped by Wikipedia, but the Windos ciode for the degree symbol is not shown - just the

    Unicode U + 2103 but Alt + 2103 just inserts a '7'.

    HEM

    HEM

    If you have the copyright © symbol to work for you with Alt + 0169, I think Alt + 0176, you should get the degree symbol as in 32 °.

    If please give it a try in the Titler, open Premiere Elements and let us know if it worked for you.

    Thank you.

    RTA

  • How to remove the character within a text.

    How to remove the character within a text.
    If I have a text like: "[4, 5, 6, 3, 9]" How can I remove the commas?
    Thank you
    and Merry Christmas.

    A possible technique would be to use a repetition structure that loop until all of the commas are removed:

    on mouseUp me
     
    theString = '[4, 5, 6, 3, 9].
     
    Repeat while theString contains «,»
    thePos = offset ("," rope)
    delete theString.char [thePos]
    end repeat
     
    put the rope
     
    end mouseUp

    However, this probably isn't the most effective technique if you are dealing with very long strings.

    If you use the JavaScript syntax, you can strip characters with a regular expression.

  • How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    Ashley,

    What about window > show the rectangle enclosing (Ctrl / Cmd + Shift + B to toggle)?

  • How to insert the new line char in sticky c# code?

    Hi all

    I paste the code complete c# on a line of string as follows.

    int _intUserID = 0; string _strUserName = string. Empty; string _strEmployeeID = string.empty;
     
    c# VS2005 .cs file code should stick as follows.

    int _intUserID = 0;
    String _strUserName = string. Empty;
    String _strEmployeeID = string. Empty;

    So how do you achieve this. by inserting the new line char in c#?

    Hi Murthy,

    Thanks for posting your query in Microsoft Community.

    I understand that you have problems with the code in Visual studio.

    The question you posted corresponds to the coding software, it would be better suited to the MSDN Community.

    Please visit the link below to find a community that will provide the support you want.

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio

    Hope it will be useful. If you still have questions, please reply and we will be happy to help you.

  • Created the form based on the table - created new line - how to retrieve line editing?

    Hello

    Sorry for such a stupid question, but being new in APEX, I don't know much about how the end user on a form.

    I have created a new form (not in a table), based on a table.

    I ran the form and created a new line.

    After the line was created, the form comes back ready to create another line (all the values in the fields).

    How can I go on the recovery of the line, I added just to make a few changes?

    Again, please forgive my ignorance.

    Mason

    Masong says:

    Sorry for such a stupid question, but being new in APEX, I don't know much about how the end user on a form.

    Or about how best to use this forum. Always include all the details of your environment and your application when you post a question so that we can provide a solution version - and context, case-specific: How to get the answers from the forum

    I have created a new form (not in a table), based on a table.

    I ran the form and created a new line.

    After the line was created, the form comes back ready to create another line (all the values in the fields).

    How can I go on the recovery of the line, I added just to make a few changes?

    Ensure that the attribute key back to point in the line process of... The ARP process is defined to return the value of PK of records inserted in the element of key primary page and delete any Reset Page clearly session state process created by the wizard page.

Maybe you are looking for

  • variable with two digits after the point

    Hi all How can I specify variable to work with two numbers (one, three) after the point? e.q. Set one to 3.14159265358 like (lack of knowledge here) return a 3.14 returned must

  • I lose my tab groups, once I close Firefox. Is this normal?

    Several times I have created groups of tabs, named and worked with them successfully. But every time after that I closed the session of Firefox and signed out of the browser, and then later started new session of Firefox (Firefox turned on again), I

  • Table of parameters of labview

    Hello I want to join UInt8 tables (MSB/LSB) to an array of UInt16. If I run that in LabView is not a problem. But when I call to TestStand, there is no full Out parameter. After I run the Teststep there are no values in the Locals.MSBLSB table. Is th

  • Aspire 7750G cannot recognize blank DVD + rw

    Hello I have a aspire 7750 G with a DVD super Multi DL drive. When recently I tried to burn some files on a blank DVD I noticed that my laptop does not recognize the DVD. First I thought that the problem was with the Manager of combustion, so I tried

  • 0 x 80070571

    I am trying to burn a cd and get get this error. Help!