APEX 3.1 replaces HTML tags in error message automatically

Hello!
I have a problem: we use sometimes HTML links or even JavaScript in error messages. In older versions of APEX it works, but now we upgraded to 3.1 and in all those messages HTML tags are replaced so instead of link we get a plain HTML in a message.
Are there any possibilities to turn this option off or what can we do to solve this problem?
Regards,
Maksim

In a page process we use raise_application_error(-20547, 'Go to GOOGLE') and in a Process Error Message
we use constuction Error: #SQLERRM#. Then on an standard error page we see instead of Error: Go to Google html source. Thats it. In template in Error Page Template Control section we use substitution #MESSAGE#

Similar Messages

  • Replacing HTML tags using HTMLEditorKit etc.

    Hi
    Not sure if this is the best place to ask this. I've searched without finding much.
    Basically I am trying to create a HTML template system for output. User's can change the templates to change the program output.
    The templates are basic HTML with custom tags inserted, that reside in a templates directory. For example, a simple template might be:
    <html><body>
    <table width="100%"><tr><td width="25%">Here is the output:</td>
    <td> <insertOutputHere> </td>
    </tr></table>
    </body></html>
    ^^ Users would be able to edit these template .htm files to affect the output .htm files. For instance, changing where the <insertOutputHere> tag is, or formatting the table it is output to.
    I am using the Swing HTMLDocument, HTMLWriter, HTMLEditorKit classes to load and parse the .htm files, iterate the tags and replace any custom tags (defined in code) with the program output. I have been able to locate these custom tags no problem, but I don't know how to replace this tag entirely with my output (Which will be formatted HTML string). I have been trying to use the insertBefore, insertAfter methods with limited success. In particular I have an 'include' custom tag which includes other files by recursion - it works except the <include> tag is not removed, and depending on which insert method I use, it usually goes into an infinite loop of parsing the <include> tag WITHOUT removing it, then picking it up again when its done.
    Basically I'm looking for any advice as to how to go about COMPLETELY REPLACING these tags with a well structured HTML string. I can post some code if need be but I barely comprehend what I've done, LOL.
    TIA

    I've looked over my mess of comments :)
    setOuterHTML is what I was previously using and it was quite unpredictable at times, as far as I could tell it is very strict with it's requirements for structured HTML (EG no floating line breaks, everything must be "paragraph-ised" which b0rks up the layout) and I can't rely on anyone using/extending these classes to write well structured HTML.
    I remember the problems being quite odd, such as the output for one custom tag being displayed twice for some and not at all for others, and while it isn't critical data, it was still displayed in a way that it could be interpreted as correct - I just knew it wasn't.
    So I dropped setOuterHTML to try insertAfterEnd - this leaves the tags in there and, like roughly explained above, it would pick up tags infinitely because they were not being replaced.
    Here is a relevant method to give a better idea of what I've done:
           public HTMLDocument parseHTMLfile(String filename, Custom_HTML_Tag tags[]) {
          //create a document
             HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
             fileDepth++;
             try {
             //read in the file
                BufferedReader rd = new BufferedReader(new FileReader(filename));
                kit.read(rd, doc, 0);
                if (tags != null) {
                //replace tags with page content
                   ElementIterator it = new ElementIterator(doc);
                   Element e;
                   while ((e = it.next()) != null) {
                   //look for includes
                      if (e.getName().equals("include")) {
                         if (fileDepth >= 5){
                         //WARNING:
                            System.out.println("fileDepth has reached 5, include may be recursive. aborting.");
                            continue;
                         String href = (String)e.getAttributes().getAttribute(HTML.Attribute.HREF);
                      //grab parent of current file (IE the folder in which it sits)
                         File f = new File(filename);
                         String include = f.getParent() + sep + href;
                         f = new File(include);
                         if (f.exists()) {
                            HTMLDocument htmld = parseHTMLfile(include, tags);
                            StringWriter sw = new StringWriter();
                            HTMLWriter w = new HTMLWriter(sw, htmld);
                            w.write();
                            doc.setOuterHTML(e, sw.toString());
                         else {
                         //couldnt find include file - warning
                      for (int i=0; i < tags.length; i++) {
                         if (e.getName().equals(tags.getName())) {
    //doc.setOuterHTML(e, tags[i].getText());
    doc.insertAfterEnd(e, tags[i].getText());
    //System.out.println("found tag: " + tags[i].getName() + ": " + tags[i].getText());
    catch (BadLocationException ble) {// cant happen?
    System.err.println("ERROR (" + 999 + "): Could not parse document " + filename + "; BadLocationException");
    System.err.println(ble);
    catch (FileNotFoundException fnf) {
    System.err.println("ERROR (" + 999 + "): Could not parse document " + filename + "; File not found");
    //System.err.println(fnf);
    catch (IOException ioe) {
    System.err.println("ERROR (" + 999 + "): Could not parse document " + filename + "; I/O Error:");
    System.err.println(ioe);
    fileDepth--;
    return doc;
    setInnerHTML kills it with the 'Can not set inner HTML of a leaf' error
    Thanks

  • Replacing html tags in a htmldocument

    Hi Java Gurus
    I have a htmldocument which has the bacjground set to black and foreground to white.
    When i print the document i see the text in white color ( rather invisible).
    I thought the foreground color of the document needs to be changed.
    How can i do this ?
    Thanks in advance
    Naveen

    rest_in_peace wrote:
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    Read the FAQ and forum sticky threads for more information on using the forum effectively.
    With APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues.
    I have created a form on a table. Now one of the fields in the form is a display only field and its datatype is varchar2.There are a number of different ways of "creating a form on a table" and of making "display only fields". Describe exactly what you mean using actual APEX terminology of regions, items, and their attributes.
    The data in the database column of the field contains html tags which is getting displayed as it is without being parsed. It is not possible for me to edit the data in the table itself since there are thousands of data. So I need a way to display the data with the html tags parsed and not displayed as it is. Please any help would be grealy appreciated. How this is achieved is version-dependent: provide the full APEX version.

  • Replace HTML tags within column values

    Hi Gurus,
    I have a requirement where I have some text which has HTML tags inserted within it and I need to insert either Presentation variable or a GO URL replacing that tag. Problem is that this text is value of a column from table. It is not something which I type( because the text can change dynamically). e.g
    Column header:  Main Text
    Row1:            <<COMPANY_NAME>>
    Row2:           As of <<AF_OF_DATE>>
    instead of <<COMPANY_NAME>> and <<AS_OF_DATE>>, I need to insert amounts from another table which have this unique tags and associated amounts. Can this be done?
    I have to these columns in different places throughout the report in narrative views. e.g
    1st narrative view will have only column 1 and row 1 and row 2.. 2nd narrative view will have only column 3 and row1...
    This is really really important part of a report. So please help me out with ideas.
    Thanks,
    Dan

    I tried calling the column in a narrative view and the result looks like :
    As of <<AS_OF_DATE>>. how can I replace "<<AS_OF_DATE>>" with a value?

  • Replace HTML tags in RTE

    Hi All,
                   I've requirement that I need to replace the html tags in RTE, I checked find and replace plugin, which only replace the text not the tags. The CQ.form.rte.SearchableDocument returns the plain text. Can anybody tell me how to replace the tags?, is there any existing plugin's available ?
    Thanks in advance
        Ganesh

    Hi Ganesh,
        You can configure the rich text editor to use semantic markup, so that the bold=strong and italic=em will be modified in the html out. Not sure it applies for other tags. Give a try.
    http://forums.adobe.com/message/4652639#4652639
    Thanks,
    Sham

  • Cannot publish 1 page in CS4. Other pages including index.html ok. Error message results.

    After many months of no difficulty, I suddenly cannot publish changes to one of my pages (all others work) without getting the error message 'Another instance of Contribute is doing a workflow operation. Do you want to break the workflow and continue.....?' Whether I say yes or no and follow the prompts, it doesn't work. One way lets me exit, the other locks up my computer and I have to 'end task' to get control back. I hoped that the answer to the 'cannot publish index page' thread would help, but I didn't understand because most of this stuff is over my head. The only thing unusual I can dectect is the page name has an # sign after html as in 'name.html#tuition.' The word tuition refers to a pointer on the page. When I switch to edit mode, an asteric * appears after 'html' on the page name. I do not see that on any other page when I edit. I have CS4 version 5. Can anyone help? I don't know how many people there are in India, but I talked to half of them in a 2.5 hour 'session' in which I was transferred in a least 3 complete loops to every department and passing 'go' 3 times before some techie finally said I should email my question in and will get a reply within 3 days. Yeah, right. Worst tech support experience I have had in 10 years.

    Hi,
         Can you try deleting the Preferences and the Contribute's User Configuration folder. You will lose your website connections, you can recreate them again after relaunching Contribute.
    If you have installed Contribute in Mac, go to <Username>/Library/Application Support/Adobe folder and delete Contribute CS4 folder there. Also, go to <Username>/Library/Preferences/ folder and delete the 'Adobe Contribute 5 Preferences' file.
    If you have installed Contribute in Windows XP, the Contribute's Configuration folder will be in C:\Documents and Settings\<your username>\Local Settings\Application Data\Adobe\. Delete the Contribute CS4 folder there. To clear the registry for Contribute, type 'regedit' in the Run window.(Click Start, and click Run, and then type 'regedit' in the text field.) Select HKEY_CURRENT_USER, then Software, then Adobe, then Contribute CS4. Click Delete button. Close the Registry Editor window.
    The <username>, I have mentioned above is the name with which you will have logged into the machine.
    Now, Relaunch Contribute and connect to your website and try editing the web pages from your website. Can you try this?

  • Trying to sync selected (greyed out) contacts to my replacement 4s.  Get error messages - computer not setup to sync - override or OK.  OK - session could not start.  How do I fix?

    I have a new replacement 4s.  I am trying to set it up.  I hate iCloud but need it to sync my calendar to my phone.  I mistakenly set it up to sync Contacts too and found out it synced ALL contacts which I do NOT want.  I used to use iTunes to sync only selected contact folders (one I call Sync).  Others are too sensitive to have on my phone.  So I turned off "where is my iPhone", and turned off "Contacts" on iCloud.  It said it would delete all my contacts on my phone the next time I sync (using iTunes).  So I try to sync my Contacts using iTunes and find that under "Info" on the device tabs my only possible selection is ALL contacts with the "Selected" button greyed out.  But even leaving all checked, I get the message "iTunes cannot sync information with the iPhone because syncing has been disabled on this computer (my Mac).  Do you want to enable syncing?"  I hit the button "Enable syncing" and I get the error message "Syncing cannot be enabled on this computer"  with "Override" and "OK" my choices.  If I select "OK" I get the error message "iTunes could not sync information to the iPhone (Name) because a sync session could not be started".  I can sync my music and my apps but get this stupid message otherwise.  What gives and I do I fix this?  Thanks

    Actually I can't sync anything - no music, photos, etc.  And it tries to start syncing as soon as I plug in my iphone and itunes is open.  It ends "sync" but hasn't done anything.  I have tried deleting lockdown files (per "solution" found here).  I have deleted all my backups (per other "solutions").  I have restored my iphone 2x.  I have done soft boots of my iphone.  My macbookpro 10.9.3.  iphone 7.1.1.  iTunes 11.2.2 (3). 

  • How to turn of HTML tags in Email Messages?

    My BB8830 World Edition on Verizon continues to show full html tags - e.g. <http://www.oracle.com/dm/global/opn.gif> - instead of just the link, which makes any email with links extremely difficult to read as the full html tags display in the middle of a sentence or para.
    Any idea how to turn this off?

    You'll have to wait for Verizon to release OS 4.5 for your device.  Once you upgrade your device, you will be able to view HTML email.
    There are also third party packages (that you'd have to pay for) available to read HTML email, but the OS should be available within the next few months.  Then again it is Verizon, and they tend to drag their heels on updates, so....
    Jerry

  • Replaceing single quote in error message

    Hi,
    Iam trying following to get and insert into ERROR_LOG table:-
    SUBSTR('<%=odiRef.getPrevStepLog("MESSAGE")%>',1,1000)
    It is throwing up an error when it is trying to insert into ERROR_LOG Table,the reason is error message has got following :-
    ' PLS-00201: identifier 'III_1742_2013011901' must be declared'
    i.e quote with in a quote if i take that one out from error message i can insert into ERROR LOG Table.
    How can we avoid this in ODI odiRef.getPrevStepLog message?
    Cheers

    try to replace the character or read after PLS.
    You can give a try like below. This should be done inside script let.
    odiRef.getPrevStepLog("MESSAGE").replace("'","")

  • HTML DB Color Error message in a field - how to set them

    Hi everyone,
    I want to know where I can set the color of an error message in a field ?
    In our page model, on an required field: the message is black
    and on an optional field: the message is red.
    I want both of them red.
    Thank you. Bye.

    Hi Carl,
    I have a similar issue. I am using Theme 20 and error messages per item as well as page level error messages are coming up in Blak. Is there a way to show them in Red?
    Thanks,
    Bhavesh

  • Task License Validation Error Message/ Automatic Scheduling for Disk Defrag is not working.

    I saw where I could possibly ask you for answers to the problems that I am having with Windows 8.1 pro. First of all I noticed that my disk defragmentation task which was set on daily wasn't operating.  It indicated that the last time it ran all disks
    for disk defrag was back on 4/20 and on the this morning of 4/26 there was the date 4/20 for all the disks.  I went into the Administrator Tools section of Control Panel and found Schedule Tasks.  When I opened Schedule Tasks I got the
    error message that indicated a Task License Validation Error. It went on to read:The task XML contains a value which is incorrectly formatted or out of range.  This is my question...are the two related...the inoperative automatic maintenance of disk defrag
    and this error message from task scheduler?  And how do I address each issue to solution.   Thank you very much. 
    [email protected]

    The MSDN Windows and Windows Phone app development forums are for developers to discuss writing their own Windows and Windows Phone apps.
    For help using Windows please post on the Windows forums on
    http://answers.microsoft.com .

  • JSF error message: Automatic prompting for file download

    This is a weird problem. I have a JSF application wherin I popup a new window on a submit button.
    The window opens a test.jsf page that redirects the output to a servlet1.
    Servlet then based on some parameters does a sendRedirectI() to different servlets out of context.
    Now the issue is that when the output is redirected to out of context servlet, that returns a file download.
    If in IE browser, if one does not do a setting of "Automatic prompting for file download", this window that I had opened on submit buttton vanishes in a jiffy. If the IE setting is done, it shows the file download correctly.
    I would want to show the user some kind of message by which he/she understands that this IE setting has to be done.
    I have tried several ways:
    1. Javascript: window.onbeforeunload on the test.jsf so that when the window unloads i can show some message. But since test.jsf forwards to servlet1, the html page generated does not show my script.
    2. I also tried checking if some windows registry can help me understand the setting.
    3. I tried writing in response object the javascript and then redirecting it to servlet out of context. But I guess sendRedirect() does a new request, so this did not help.
    Can anyone help? I am not sure if I am able to explain my problem correctly.
    Yani

    Here is the result.I used your code and it worked fine with IE setting Enabled. But when I tried to access the download servlet after opening a new window, it doesnt download the file.

  • How to use Microsoft Word's Find and Replace with HTML tags?

    Hello to all!
    I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this:
    <span class="B01-K-ITAL">random text</span>
    To something like this:
    <em>random text</em>
    I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly.
    Anyone able to lend a hand?

    Here is my latest regular expression with Perl.   I think it matches the spirit of the request in the original post.
    Note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.
    perl -0660pe 's^<[sS][pP][aA][nN]\s+class="B01-K-ITAL"\s*>(.*?)</[sS][pP][aA][nN]>^<em>$1</em>^gs' i.html >|o.html
    input text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <span class="B01-K-ITAL">#1 one line</span> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <span class="B01-K-ITAL">#2 don't be greedy</span> <span class="B01-K-ITAL">$3 multiline text</span> <span class="B01-K-ITAL">#4 multiline tag. I believe html allow a carriage return in white space of tags</span> <span class="B01-K-ITAL">#5 split after the class tag. optional white space</span> <sPan class="B01-K-ITAL">#6 mixed case tag</Span> <p>no text #7</p><span class="B01-K-ITAL"></span> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>
    output text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <em>#1 one line</em> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <em>#2 don't be greedy</em> <em>$3 multiline text</em> <em>#4 multiline tag. I believe html allow a carriage return in white space of tags</em> <em>#5 split after the class tag. optional white space</em> <em>#6 mixed case tag</em> <p>no text #7</p><em></em> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>

  • Error message string : cant put and and HTML Blink tag

    Hi All,
    I have experienced a strange problem in the error message string .When i put <abc>.txt as a error message in my validation routine it just truncates abc .
    I think HTMLDB understands it as a HTML tag .
    Any idea how to put open and close angle ?
    And one more question do i put HTML blink tag inside error message ? Its not working ....
    Cheers,
    ROSY

    Try using & lt ; and & gt ; instead (without the spaces inbetween the characters).
    What do you mean by "not working" for the blink question? I'd also suggest that it "not working" is a good thing...blinking text on a website usually looks horrible ;)

  • Displaying content in JSP page, want BR but not other Html tags

    I have a page and am reading files and displaying the contents of the files onto the page in a <div> Oneissue is that in the file the end of line are \n or \r\n whichever operation system. I replaced those with <BR> no problem. Now my issue is that I display that in the JSP page:
    <c:out value="${filecontents}" escapeXml="false" />I use escapeXml so that <BR> will add the line breaks. Now my issue is that the file might contains other HTML tags that I want to display simply as text - I don't want the browser to render the other HTML tags.
    Is there a way to do that? Would I have to replace HTML tags with something special?

    Hmm... your file contains HTML tags, but you don't want the browser to interpret them as HTML tags, right? So the way to do that is to use escapeXml="true" in your c:out element.
    But then that also escapes the <BR> tags that you carefully put in there. And you don't want that. You want the browser to interpret those as HTML tags.
    I guess you can't have it both ways. Can you do something like outputting one line of the file at a time with <c:out ... escapeXml="true"> followed by <br>?

Maybe you are looking for

  • In search of end user based forums

    in search of end user based forums Any one know of SAP website for (expert) end user Q/A   ? Development is fun and all, but when I need A break from the 011001101000100110100 where do I go?

  • Converting graphic data to analog data

    Hello, I have to realize a LabView program to command a step by step motor. My problem is that the command sent to the motor is not the instruction I give to the program. I found that the error is made when the data are converted from graphics to ana

  • Labview driver for agilent 8164A tunable laser

    I'm working on a project that involves setting up our Agilent 8164A lightwave measurement system in labview. I cannot locate the driver software on the NI website. Please let me know where I can download the driver for this equipment. Thanks.

  • How can i  add at jlist

    i want to add item at JList but i don't know the method and how can i deal with JList at all

  • Payroll using time evaluation with clock times

    Dear all, I have configured an employee to have time management status 1, and my company would like to use attendance for time recording instead of time event since our clocking interface cannot provide exact clock times. I have also configured HRSIF