Hidden html tags.

To all my partners in code,
Here is my story: I am currently a novice at PL/SQL and APEX, so bear with me. I am creating a "User creation page". This page instructs the user to enter a username and password. I then run a validation on the username to make sure it meets my standards (a-z, A-Z, 0-9, and '_', etc. ). If it doesn't meet my standards then the page is not submitted and the user has to re-enter his or her desired username.
Here is my issue: When the validation fails I want a detailed message about why it failed, (e.g. Username contains invalid characters). I want this error to only display "INLINE IN NOTIFICATION"... however, I want to somehow highlight the problem field without sending the entire message text (my textbox item PX_USERNAME has a label of "Username"). Currently my workaround has been to have the label look like this:
ITEM LABEL FOR PX_USERNAME:
<font color = "&PX_COLOR.">Username</font>
PX_COLOR is a hidden field in my app that has a default value of "black"... upon failing in the validation, it changes the value to "red" and all works and everyone is happy. Except me...
I wanted to actually send tags that way... for example (and bear with me):
ITEM LABEL FOR PX_USERNAME:
&PX_HTMLOPENTAG. Username &PX_HTMLCLOSETAG.
IF Validation = fail THEN
:PX_HTMLOPENTAG := '<font color="red"><strong>';
:PX_HTMLCLOSETAG := '</strong></font>';
For any of you who have tried that before know that the USERNAME label would look like this once the page opens:
<font color="red"><strong> Username </strong></font>
Meaning the tags were really converted to:
<font color="red"><strong< Username ........
Here is my request: Am I going about this the hard way? Or is there an easier way to change the format of the Username label if the validation fails. If not... is there any way to do what I am doing and have the tags parse as real tags and not as their entities (e.g. >)?
I do apologize for the long post and possible spelling AND OR grammatical errors. But I am certain that there is enough information that you know what I am hoping to do.
Thank you in advance and good luck, oh and thank you!
TJ
P.S. Thank you...

TJ,
Like Andy said, making a custom Label Template will probably be the best solution.
For example, you could put this in the On Error Before Label box:
<img src="#IMAGE_PREFIX#inline_error.gif" alt="Error" border="0" height="16" width="16"><strong>
and put this in the On Error After Label box:
</strong>
If you are using version 2.2 or later, then the reason that you are having trouble with your current approach is
that the contents of Hidden fields are escaped before they are rendered.
You could try using Application Items instead of hidden fields for those values if you still want to use that approach.
Doug

Similar Messages

  • HTML tags in Hidden Item not displaying correctly

    I have created a HTML Text Region which includes a Javascript function. The function references a Hidden Item also created and linked to the region. The Hidden item returns a text field from the database with concatenates multiple rows together into a single string with HTML tag -br- between each row.
    The tags are not been recognised as HTML tags and is displayed :-
    -br-Record 1-br-Record 2-br-Record 3-br-'
    I want the page to display :-
    Record 1
    Record 2
    Record 3
    Any ideas?
    Message was edited by:
    pjturley
    Message was edited by:
    pjturley
    Message was edited by:
    pjturley

    Hello,
    Check to make sure you don't have those items set to escape html.
    Past that are you sure your javascript is putting in the <br /> tags correctly? before you submit fire a alert that shows the value of the hidden item and make sure it's correct there.
    Carl

  • HTML tags showing up in the pages also in 2.0?

    Hi,
    After a 5 minutes test of our application after an upgrade to 2.0 I found 3 places where html tags is showing in the bottom of the page. Normally it’s a html tag that is not getting closed. The examples look like this:
    </
    <INPUT TYPE="hidden" NAME="p_min_row" VALUE
    <script language="JavaScript1.1" type="text/javascript"
    We have been telling the customer that these problems would disappear with the new version, but it have not. I know that we were not the only ones with these problems on 1.6. How are you dealing with this? I can not imagine what our customer is going to say when we tell them that we can’t use htmldb for the project, especially since we were the ones pushing htmldb.
    In release 1.6 the problems were normally only in Internet Explorer and not in Mozilla. I have not been able to check on 2.0, because since the upgrade it is only possible to logon using Internet Explorer. Mozilla gives a script error. :-)

    Hello,
    I have a feeling all your problems are related take a look at this thread. I found it in 10 seconds of searching the forum.
    strange tags
    It's always best to do a quick search first most likely you are not the first person to have this problem.
    Carl

  • HTML tags displayed with the text in "Notification" area

    We want to display an HTML formatted message in the "notification" area, but the HTML tags are being escaped and thus are displayed along with the text. We are using Application Express 2.2.1.00.04. The application has been handed off to us to support and we have no experience with APEX. So I hope I am explaining this correctly.
    The process to display the message is as follows:
    After submission, a page validation fires, which is of type "function returns boolean": "return some_function('P100_MESSAGE',2nd_arg);".
    In "Error Message" is "&P100_MESSAGE."
    The function returns true when the validation is successful. When validation fails, it returns false, setting 'P100_MESSAGE' to some error message - for example: "<li>Phone number is not numeric</li><li>Email address is not valid</li>".
    Our template has this in the body definition:
    #NOTIFICATION_MESSAGE##SUCCESS_MESSAGE##BOX_BODY#
    As I understand it, #NOTIFICATION_MESSAGE# will be replaced with the value of 'P100_MESSAGE'.
    I've displayed 'P100_MESSAGE' on my page to confirm its contents and it is rendered correctly with bullets. But the notification area does not show bullets. It displays the text and the HTML tags.
    Is there anything obvious we can do to fix this problem? Thanks

    I 've changed P100_MESSAGE to text field, text field (disabled, saves state), text field (disabled, does not save state), and textarea, display as text, etc. It is originally set to Hidden type (because it is only to be displayed in the notification area). But changing it to various types makes no difference as to how it is displayed in the notification area. Of course, when it's not hidden, then it's also displayed on the page, among to other page elements,which is not acceptable.
    Thanks-
    -j

  • HTML Tag Problem OnInputProcessing

    Hi!
    Hope anybody can help.
    I have a MVC application. In our views, we can´t use HTMLB controlls. So we must use standard HTML controlls.
    With ?onInputProcessing it is possible to come in the on_handle_event Method in my controller class.
    The HTML statement in the view works fine :
    <a href="?onInputProcessing(NAVIGATION_MAIN_FUNCTIONS|BACK)">
    But in the select HTML Tag the statement doesn´t work.
        <select onchang e="?onInputProcessing(NAVIGATION_MAIN_FUNCTIONS|BACK)">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
        </select>
    What`s wrong in the select tag??
    Regards,
    Anton

    Try below code, it will solve the issue
    < script t-ype="text/javascript">
    function triggerevent(event)
         document.getElementById("OnInputProcessing").value = event;
         document.getElementById("MYFORM").submit();  " Change the Form name here
    < / script >
        <select onchang e = "triggerevent_contact_dd('Your_event_name_here')">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
        </select>
        <input type="hidden" name="OnInputProcessing" value="value"/>

  • Remove HTML Tags and parse the text out of it

    Hi All -
    I had a text file with all the HTML Tags on it. I want to parse text out of it. Is there any package available to remove all the HTML Tags from the text.
    For example
    <HTML><BODY bgColor=#ffffff> This is the text i want to parse.</BODY></HTML>
    The result would be: This is the text I want to parse.
    The text can be very long and can have many different HTML Tags. I cannot use REPLACE becuase tags can me lot more then I thought.
    Please respond as soon as possible..Thanks for all your help!!
    Anuj Sharma

    thank you all, but my code is only html no xml , and is other application that save in table
    <html><head><title>Aprovação de ARC</title></head><body><font face=arial size=2><b>974-17016/ugadiego-2013</b></font><br><br><table border=0><tr><td><b><font face=arial size=1>Data da Abertura</font></b></td>    <td><font face=arial size=1>8/3/2013</font></td><tr><td><b><font face=arial size=1>Quebra Produtividade</font></b></td>    <td><font face=arial size=1>Sim</font></td><tr><td><b><font face=arial size=1>Quantidade</font></b></td>    <td><font face=arial size=1>17,5</font></td><tr><td><b><font face=arial size=1>Valor</font></b></td>    <td><font face=arial size=1>R$ 17496</font></td><tr><td><b><font face=arial size=1>Forma de Indenização</font></b></td>    <td><font face=arial size=1>Nota de Crédito</font></td><tr><td><b><font face=arial size=1>Observação</font></b></td>    <td><font face=arial size=1>Evidenciado a não conformidade do produto em visita a cliente pela assessoria agronômica e qualidade.
    Produto apresenta-se empedrado com desuniformidade de grânulos e por consequência geração de finos e falha de óleo.
    Produto expedido com GDAP.
    Bonificar o cliente em 10% do valor da compra = R$ 17.496,00 ou em toneladas e fertilizantes  que podem ficar em forma de crédito para o cliente retirar em fertilizante para o plantio  da soja. Conforme relatório do Sr. Ademilson Palharin em anexo.</font></td><tr><td><b><font face=arial size=1>Centro de Custo</font></b></td>    <td><font face=arial size=1>CAS1I4671 - MISTURA E ENSAQUE I                     </font></td></table><hr><font face=arial size=2><b>Favor incluir uma Observação (Se necessário) e selecionar o botão desejado para aprovar ou reprovar essa Indenização.</b></font><FORM ACTION='http://10.176.10.123/pgAprovaARCServidor.asp' METHOD='GET' ><font face=arial size=2><div>Observações:</div><textarea name='txtObs' rows='4' cols='60' maxlength='4000'></textarea><br><br><div><input type='submit' value='Aprovar'  name='acao'> <input type='submit' value='Reprovar' name='acao'></div></font><br><hr><font face=arial size=2 >Essa é uma mensagem automática.<br>Favor não responder esse email</font><hr><input type='hidden' name='cdARC' value='17016' ><input type='hidden' name='cdSeq' value='1' ><input type='hidden' name='cdFase' value='Indenizacao' ><input type='hidden' name='dsResp' value='ustrenat' ><input type='hidden' name='dsCargo' value='Vice Presidência' ><input type='hidden' name='dsSolic' value='LESIANE CIESLAK' ><input type='hidden' name='index' value='3' ><input type='hidden' name='rowatu' value='3' ></FORM></body></html>using oracle 9.2.08
    Edited by: muttleychess on Mar 19, 2013 11:36 AM

  • Html tags added while exporting to csv

    Hi,
    I am facing issue of html tags got added to some columns while exporting report to the csv format.
    Can anyone help me for this .
    Thanks,
    Vivek

    The TextArea is being included in the csv file probably because it is added to the select query. The main report query has
    select apex_item.hidden(49,triagemd5_wptg||triagemd5_compare) || APEX_ITEM.CHECKBOX(34,triagemd5_wptg||triagemd5_compare) checksel, id,APEX_ITEM.SELECT_LIST(35, response, ''Will Fix;Will Fix,Will Not Fix;Will Not Fix,Not an Issue;Not an Issue'','''',''YES'','''','''') , APEX_ITEM.TEXTAREA(45,comments,0,0,''onMouseOver="title=this.value;" style="width:200px;font: 12px/16px Arial,sans-serif;height:50px; border:0 none; overflow:hidden"'')
    This was implemented like this because the no. in the 1st column of the API (eg. 45 for apex_item.textarea) is needed to write the values to DB. If the textarea and formatting is added as part of report column attribute then writing comments and response to DB will fail.

  • Assigning value to jList similar to HTML tag select

    hi friends...
    Can we assign value to Jlist ..just like in html tag
    <select ">
    <option *value="val"* >Text</option>
    </select>
    Each row should have value assigned with it....when we select the row..it should return the hidden value..
    if it possible please reply
    thank u

    implement custom renderer which will show just text.The easier way is to override toString() for the custom class. JList by default uses toString to render the item.
    db

  • Use Transformer tag within HTML tag

    Does anyone know how to use the transformer tag within the HTML tag? I couldn't get it to work...
    I.e <input type="hidden" name"id" value="<pt:userInfo name='EmployeeID' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>">
    The example above didn't give the actual value...the <pt> tag never got parsed...
    I even tried with the <c:set> JSTL tag as well, same result...the <pt> tag never got parsed...
    Please advise!
    Thanks
    BC

    You can work around this with JavaScript:
    <input type=&#034;hidden&#034; id=&#034;myHiddenField&#034; value=&#034;&#034; />
    <script type=&#034;text/javascript&#034;>
    var employeeID = &#034;<pt:userInfo name='EmployeeID' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>&#034;;
    document.getElementById('myHiddenField').value = employeeID;
    </script>

  • Help needed in adding effects of certain HTML tags in Flex spark Richtext

    I want to apply the effects of the following HTML tags/ attributes, in my HTML text rendered in Flex Spark Richtext Component.
    Superscript - <sup>
    Subscript - <sub>
    Blockquotes - <blockquotes>
    Ordered Lists - <ol><li>
    Unordered List - <ul><li>
    Horizontal Rule - <hr>
    Direction Attribute for <p> - <p dir="rtl">Hello</p>
    Background Color for <font>
    I have observed that the above tags have no effect in RichText. Is this a limitation?
    Any solutions, tweaks and tricks will be appreciated...
    Thanks,
    Mangirish

    check this out . this should be able to answer you question.
    http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html
    Miguel

  • Query to extract HTML tag with data

    Hi All,
    I have a string.
    '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>'
    I want to extract a html tag including its opening & closing tab with data as
    if i say P1
    then the output should be
    '<P>THIS IS P1.</P>'
    for P2
    then the output should be
    <P>THIS IS P2.</P>
    please help me in writing this query with regular expression
    i have tried it as following but it is not giving desired result:
    WITH T AS
    SELECT
        '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>' STR
    FROM   
        DUAL
    SELECT REGEXP_SUBSTR(STR, '<P>.+P2.+</P>') FROM T
    Thanks & Regards
    Nimish GargEdited by: Nimish Garg on May 7, 2012 5:49 PM

    Nimish Garg wrote:
    My requirement is to extract a <tag>data</tag> from a HTML/XML string
    where data contains any specified value.HTML is not XML.
    And that is a critical distinction to make. HTML parsing is horribly complex. XML is quite easy. For HTML you have to code your own parser in PL/SQL. XML can be parsed using the XMLTYPE class/data type in PL/SQL.
    So if you need to find a single specific tag in HTML - I would not try to treat it as XML. I may not even try to use regular expressions.
    I would do a basic substring search for the start of the tag. Read the data following the tag. Ensure that there are no nested or embedded tags in the data. Until the end tag is read. Because HTML is that much abused - and because that is an accepted norm as parsers used by browsers deals with that abuse without complaining.
    Proper HTML is mostly a myth in my experience of "screen scraping" web servers for data extraction as they do not have web services supplying the data.

  • Values having html tags not getting populated while using AJAX in APEX

    Hi,
    I am using AJAX to populate certain values in a tabular report.
    I have a java script of this form (I have taken this example from Denes's example http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049)
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular(pValue, pRow){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    get.add('T_ROWNUM',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    if(gReturn){
    var l_Count = gReturn.getElementsByTagName("item").length;
    for(var i = 0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    </script>
    And I have the application process as follows
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f05_000' || :T_ROWNUM || '">' || :TEMPORARY_APPLICATION_ITEM || '</item>');
    HTP.prn ('</body>');
    END;
    If I have :TEMPORARY_APPLICATION_ITEM as 'Vikas' it gets displayed properly but if I have '&lt;b&gt;Vikas&lt;b&gt;' it shows null. if it has any HTML tags function l_Opt_Xml.firstChild.nodeValue is not working properly .Please tell me what modiifcation can I use in function l_Opt_Xml.firstChild.nodeValue to get Values with HTML tags also to get displayed.
    Thanks,
    Vikas

    Vikas,
    Try escaping special characters: htf.escape_sc(:TEMPORARY_APPLICATION_ITEM)Regards,
    Dan

  • Pdf and html tags

    I am creating a report in APEX. I am using the HTML TAG <br> in my headings on the report. The headings on the report look great. When I do the PDF the headings do not look great. The PDF does not seem to like the html <br> tag. Any idea's?

    Hi Earl,
    I actually have strong, bold, italic, html, new paragraph tags in the content of the text area.
    When the pdf is displayed, it shows the tags as it is. I want the data to be formatted and displayed.
    Thanks
    Meenu

  • HTML Tags not moved in PDF

    Hello,
    I would like to print a report as a PDF and use the BI Publisher.
    This functions so far also quite well, only I have the problem
    I pass a HTML formatted text from a field CLob
    and with the PDF output the HTML tags are not moved.
    In the PDF document the HTML tags stands instead of a formatted heading,
    e.g.
    <*h1> This is the heading <*/h1> (without stars)
    What I must set / make with it I also a formatted one
    Heading agrees?
    Somebody an idea?
    Edited by: user10460383 on 14.09.2009 06:16
    Edited by: user10460383 on 14.09.2009 06:17

    True - a PDF isn't going to support HTML encoding. HTML will just be seen as more text, and displayed that way.
    You can strip out HTML tags fairly easily with a regular expression in your query SQL - this simply looks for text between < and > characters, and removes it. That should work for basic HTML formatting tags, but it isn't 100% (it won't handle <script> blocks correctly, for instance).
       select regexp_replace(myHTML, '<[^>]*>', '') as myText
       from myTable... Implementing a method to convert the HTML formatting into RTF formatting is also possible, but not a trivial task - you'd effectively have to replace each HTML tag with an RTF equivalent -- eg, replace <H1> with the RTF code to make a larger font, replace </H1> with RTF code to return the font to normal... etc...

  • Reports does not show data which contains HTML tags

    Dear Gurus
    Im trying to resolve this problem but im really stuck in it. I have the requirment to customize PO reports in R12 and at the end of every report we have to show its Terms and Conditions.I have the following query wich brings me the data i need.
    SELECT
    otu.document_number po_segment1,
    otu.document_id,
    otta.template_id,
    otta.template_name,
    otta.description,
    otta.intent,
    otta.status_code,
    otta.start_date,
    otta.end_date,
    otta.instruction_text,
    otu.document_type,
    otu.document_number po_segment1,
    otu.document_id po_header_id,
    osb.HEADING titulo_seccion,
    oav.display_name,
    oav.article_text article_text
    FROM
    apps.okc_terms_templates_all otta,
    apps.okc_template_usages otu,
    apps.okc_k_articles_b okab,
    apps.okc_sections_b osb,
    apps.okc_articles_all oaa,
    apps.okc_article_versions oav
    WHERE otta.template_id = otu.template_id
    AND otu.document_id = okab.document_id
    AND osb.scn_id(+) = okab.scn_id
    AND okab.article_version_id = oav.article_version_id
    AND oaa.article_id = oav.article_id
    AND otu.document_number='21000000111' -- Purchase Document
    AND otu.DOCUMENT_TYPE NOT IN ('RFQ_RESPONSE', 'RFQ','RFI_RESPONSE','RFI','AUCTION_RESPONSE','AUCTION')
    The problem is the field okc_article_versions.article_text storage data with HTML tags as an example : ''<P>COMPANY will make it’s best effort to provide an accurate forecast to CONTRACTOR, <B><I>at the end of every quarter,</I></B> however, a forecast in any form, shall not represent a firm commitment by COMPANY.,</P>"
    So when i tried to show the information my .rtf template nothing comes out. Does anybody knows whats happenig and how to resolve it??
    Please, resolve this issue is more than urgent an i guess somebody have the answe Thanks a lot
    Mily

    Hi ,
    Currently image url have value http://serverip:port/reports/rwservlet
    I don't know is this correct? Suggest What value it should have?
    Thanks
    Vinod

Maybe you are looking for

  • How to know the day of a given date?

    Hello Experts, Is there any function module that can give the day of a given date? For example, If I put in 10/30/2007, it will give me Tuesday. Hope you can help me guys.Thank you and take care!

  • Two windows open when I open Firefox. I just upgraded to 6.0.2

    I just upgraded to 6.0.2. Now two windows open each time (your firefox is updated). There is also a lag becasue it is checking ad ons. I tried deleting prefs.js. I also reinstalled Firefox. Nothing works. Very frustrating

  • Authorization for User to Jump the Query

    Hi, The user1 (log is not generating for this user in RSSM) cannot use the jump target in the reports which have been placed under a role, whereas the other user2 (log is able to generate for this user in RSSM) is able to jump target in the reports i

  • N97mini cannot use GPS after upgrading

    hi there, just as mentioned, i bought n97mini and tried to use its gps function in UK. it worked perfectly before i upgraded but after i downladed the nokia ma loader and upgrade map in my mibilephone, navagtion , my location, maps.....all could not

  • Query Performace

    Hi, The below two queries will do same work. i want to know which one is performance low. UPDATE (SELECT p.ph_country_code,c.country_code                FROM address a,                     phone p,                     country c               WHERE a.