APEX strips HTML in LOV

Hi,
I have a hierarchical query to generate LOV values with a delimiter separating each level in the hierarchy. I use a regular expression to surround the last value with '<b>value</b>'.
However, when I test the results, either the opening bold tag or both the opening and closed bold tags are stripped from the LOV (depending on what's between them).
Does anyone know how to tell APEX to not strip the tags? I looked at earlier posts and saw 'Strip HTML ' as a setting but could not find that in the scope of an LOV.
Here is a simple example of the LOV query that will be affected by this:
select '<b>TEST</b>' display_value, dummy return_value from dual;
Thanks,
Corey

Hi Corey,
There's no simple way to highlight just a portion of the text unless you use uppercase or asterisks or something else that stands out. Instead of using  , you should use character 160 - in your sql statement, where you want this to appear, hold down the alt key, then type 0160 on the number keypad and then release the alt key. On screen this is a space but for html, this is just a character like any other.
One other method, which I seen used somewhere in this forum, is to insert a separator option and then disable that using the following in the region footer:
<script type="text/javascript">
var x = document.getElementById("P1_LANGUAGE");
var o = x.options;
for (var k = 0; k < o.length; k++)
  if (o[k].value == '- - - - - - - - - - - - -')
    o[k].disabled = true;
</script>The '- - - - - - - - - - - - -' shown is whatever value you specify for the separator.
I'm not sure how easy it would be for you to do this in your sql statement?
Otherwise, as Tyler suggests, try things in static files - this is how I tend to work out this sort of thing. If you can get something to work there, it should be doable in Apex.
Andy

Similar Messages

  • Bug report: Strip HTML in reports

    Create a report region using the following SQL
    select * from apex_application_pages
    where application_id=:APP_IDThe default for Strip HTML is Yes in Report Attributes. Yet, if some rows contain CSS or Javascript snippets in the PAGE_HTML_HEADER column, they are NOT escaped i.e. the report column is empty and the code is dumped in on the page.
    Needless to say, this causes havoc with the presentation because the CSS is actually applied to the page.
    Thanks.

    Can you elaborate on that?The Strip HTML option (Yes/No for the whole report) allows html tags in column values to be removed (not escaped) when they are emitted when the column's HTML Expression attribute references the column in #COL# notation.
    And I agree, the Display As attribute of the Tabular Form Element section is a bit misleading as situated. Whereas most of the attributes in that section pertain to tabular form elements, the Display As LOV provides two additional variations on the Standard Report Column type: Display as Text (based on LOV, does not save state), and Display as Text (escape special characters, does not save state). Changing the selection among these three changes how non-updatable report columns are rendered, regardless of whether they are part of an updatable report.
    Scott

  • Interactive report - strip HTML

    Hi,
    Where is the option to strip HTML for an Interactive report? Is it possible to set this option for each column?
    N.B. This setting can be found under Layout and Pagination for classic report.
    Thanks,
    Louis-Guillaume
    Homepage: http://www.insum.ca
    Blog: http://insum-apex.blogspot.com

    Louis-Guillaume,
    Because we allow filters on the actual column values, strip HTML is not possible as an option for interactive reports. Any changes to the column values should be done inside the query.
    - Marco

  • Strip HTML by regexp?

    Hi,
    <br><br>
    In short: what's the regexp for stripping HTML tags?
    <br><br>
    I want to give users the option of some basic formatting when entering note fields. Most of the time a plain Text Area will suit their purposes, and displaying a Text Area with HTML Editor will just scare them.
    <br><br>
    (Sadly Text Area with HTML Editor items are not configurable - I really want to be able to switch off options like Justification, Foreground and Background. It's very irritating to be typing this post into the sort of item I want to provide!)
    <br><br>
    My prototype solution is a radio button which allows users to toggle between a plain Text Area and one with an Editor, preserving any text so far entered. Fine, I've got that far.
    <br><br>
    When the user switches from plain text to Editor, I just replace chr(10) with '<br>' and all is well.
    <br><br>
    When the user switches from Editor to plain text, I need to strip the HTML tags out.
    <br><br>
    I've googled far and wide for a regular expression to do it, but all the solutions I've found are in VB, Perl, Python or whatever.
    <br><br>
    Clearly the HTMLDB team have cracked it - I imagine that the Strip HTML option on reports is a regexp_replace - so would anyone please care to share?
    <br><br>
    Many thanks,
    <br>
    John D
    PS the commonly-cited expression '<(.|\n)*?>' doesn't work:
    <br><br>
    SQL> select regexp_replace('&lt;p>abc&lt;/p>','<(.|\n)*?>',null) str from dual;
    S
    -<br><br>
    PPS when I previewed this post, my linebreaks were lost, so I had to put them in manually.Odd.

    SQL> select regexp_replace('&lt;p&gt;abc&lt;/p&gt;','&lt;[^>]*&gt;',null) str from dual;
    STR
    abcseems to work for simple markup

  • Need some help - function that strips html tags

    Hey peeps,
    Need some guidance.
    I need help to write a function that will strip html tags from a string. So for examples if I have the following string:
    myString = "<p>This is a Paragraph</p>"; after runing the function it should return the string: "This is a Paragraph".
    Could anyone plz point me in the right direction on how to do this.
    Thanks,
    Zub

    System.out.println(myString.replaceAll("<[^>]++>\\s*", ""));

  • Oracle function to strip HTML tags in data

    Hi, may I know if there is any oracle function that can strip HTML tags from the data? I am currently using Oracle 9i. Therefore is unable to use the RegExp_Replace functionality provided by Oracle 10g.
    Any help will be appreciated.
    Thanks a lot!

    I found this function:
    function str_html ( line in varchar2 ) return
    varchar2 is
    x varchar2(32767) := null;Let's hope whoever uses this doesn't want to deal with large XML's.
    This question would have been better asked over in the XDB forum. All depends whether there is a schema available to describe the XML, what version of the database etc. With a schema, the schema could be registered into the Oracle 10g database and that used to create relational tables automatically, from where you can load in the XML files. Loads of information available on the XDB forum, most likely in the FAQ's on there.

  • APEX - passing values from LOV's or multi-select LOV's to another APEX form

    I am new APEX development and I need to take the values from LOV's and multi-select LOV's and pass them to another APEX form. I want to take those passed values and use them in the where clause of the base-table in the called form. Any assistance would be greately appreciated.

    Hi,
    Refer this example
    http://www.talkapex.com/2009/07/apex-how-to-pass-multiselect-list.html
    Example: http://apex.oracle.com/pls/otn/f?p=20195:2100
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • HTML in LOV

    Hi,
    We are upgrading applications from HTMLDB 2.0 to APEX 4 . In some LOV we are using & nbsp ; to add some spaces in the list to make it easier to read.
    But in the selectlist the items escapes the HTML and instead of a space like before we now see the HTML code & nbsp ; displayed.
    Is there a way to Not Escape the HTML in a seleclist or add more than one space ?
    Thanks
    Francis.

    This is becoming a frequently asked question: there are several other threads dealing with this issue. See +{thread:id=2126522}+

  • How to strip HTML out of the form field but leave the basic user formatting?

    What would you recommend to automatically strip out HTML that a user has entered into a form field? At the same time we need to preserve the basic formatting that was submitted by the users  i.e. replace <p> tags with CRLF, etc. StripHTML function is perfect but it removes all HTML and therefore, all formatting. Is there anything more flexible?
    Thanks!

    Do you need to strip it, or just render it inoperable.
    The latter can be done with the htmlEditFormat() and htmlCodeFormat() functions.
    If you want the striping, take a look at related functions at the http://www.cflib.org site.   I know I have seen HTML replace functions that had the ability to be configured to strip and|or not strip a select list of tags.
    StripHTML() may actually have this feature (I believe it is hosted at cflib.org).  You may just need to see the documentation on how to configure it thus.

  • Apex 2.2 popup lov doesn't return chosen value

    Hey,
    I've built a page within one of my applications in apex 2.2 that has an item based on a Popup LOV. I have a pre-built dynamic LOV.
    When I run the page the popup icon appears and I can launch the popup. The filters work, and the result set appears. However, if I attempt to click on a value, nothing happens. The window remains opened and no value is returned to the parent window. The browser window shows no sign of javascript errors.
    I'm using Theme 11 and the standard popup template.
    I've tried this is a different workspace, using the same lov sql etc, and it works ok!
    I've tried it elsewhere in a new page within my problematic application, and the problem is replicated there too.
    What could be going wrong?
    Cheers,
    John

    Hi,
    I have to create a page , with dynamic Popup using query. I am using APEX_ITEM.POPUP_FROM_QUERY(). Dynamic popup is generated, i can able to open the popup, when i click the link of the generated records. It does not return the value.
    I feel that , it's like your error.
    could you please help me ou.t
    Thanks
    kam

  • APEX Supplied HTML Editor (fckeditor) - Limit number of characters

    Hi
    Has anyone found a way of limiting the number of characters allowed in the HTML Editor that is supplied with APEX (3.1/fckeditor)
    I have had a look at the fckeditor web page and found a couple of plugins but I fear that this approach will require me to manually implement fckeditor, and not use the inbuilt one.
    I would also prefer to not do this with an application process as the user can overflow the editor and get the HTTP-400 Value param too long error.
    Regards
    Matt

    Dribble!
    does this help? Is their anyway to limit the character count on a textarea with html editor

  • Strip html tags from string & convert ampelsand charachters

    hello, i'm converting html into xml, and i need to convert html code & content into xml content, withouth the html tags ...
    so, for example, I strip this out of an html file:
    <A NAME="b_betreft"></A>STUDIEOPDRACHT "UITBREIDING VIPA NAAR MEERDERE SUBSECTOREN" HERVERDELING VASTLEGGINGS- EN VEREFFENINGSKREDIETEN VAN HET VIPA VOOR HET JAAR 1999 ONTWERPBESLUIT VAN DE VLAAMSE REGERING TOT HERVERDELING VAN BASISALLOCATIES VAN DE BEGROTING VAN HET VLAAMS INFRASTRUCTUURFONDS VOOR PERSOONSGEBONDEN AANGELEGENHEDEN VOOR HET BEGROTINGSJAAR 1999<A NAME="e_betreft">
    and i want to get rid of the "<A NAME="b_betreft"></A>" & "<A NAME="e_betreft">", are there classes that can do this ???
    probably there are, i know in php there are ..., how about java ???
    also i'll need to correct stuff like:
    Financi&euml;le => Financi�le
    Comit&eacute=>Comit�
    you see, then, i'm done, cool ...
    thanks dudessssss

    hello, i'm converting html into xml, and i need to
    convert html code & content into xml content,
    withouth the html tags ...Why didn't you continue to post in your other thread?
    http://forum.java.sun.com/thread.jspa?threadID=777660
    It's not nice to create multiple threads with the same question.
    Kaj

  • ASP - strip html from loaded page

    Hi,
    I have a link to an external site (although owned by the same
    company)... which when clicked opens a new window and displays some
    results.
    The link in question actually subits form and passed some
    values to the new window which loads the external site -takes the
    form values and displays the resutls.
    pretty easy so far..
    problem is.. the results page shows a load of info that I
    don't want...
    so I'm looking for a way of stripping the html coding out
    before the display...
    now normally that would be easy if the html was on the site
    side.. but it's being generated on the other side.
    so basically I need to have an ASP page.. which loads the
    outside source.. gets the info out of it.. and then displays that.
    what I don't know how to do is stuff the generated html into
    an ASP variable first.. before displaying it..
    Any ideas?
    James

    You need to use the server-side XMLHTTP object to request the
    page in order
    to do that.
    http://www.4guysfromrolla.com/webtech/110100-1.shtml
    You'll almost certainly have version 3 of the component, so
    read the code
    comments as a line or two differs for version 3.
    "jamesy" <[email protected]> wrote in message
    news:e41t86$bgr$[email protected]..
    > what I don't know how to do is stuff the generated html
    into an ASP
    > variable
    > first.. before displaying it..
    >
    > Any ideas?
    >
    > James
    >

  • HTML DB - LOV is empty at the start of the application

    Hi everybody,
    Is it usual when we open our application (the first one with HTML-DB) that our lov are empty. Is it a problem with my application ? Is a problem with oracle database ? (I know they stop the Database for backup but the restart is made at 7 o'clock. But, at 7:50 we opened the application and the lov's was empty.)
    I take a look on this forum and I don't see something about it.
    Can you help me ?
    Thanks. Bye.

    Excuse me Vikas,
    I'm a french speaker, I use the french version 1.6. I have to translate in english everything about the html-db product. I have no documentation in french about HTML_DB. It's our first application with HTML-DB and a oracle product. Finally, I have "some" problems to write in English. I do my best. But, I love working with HTML-DB.
    By Lov, I say list of values (a select list) in our application.
    Thank you very much Vikas.

  • Stripping HTML thru regular expression(pls help)

    Hi all..
    I've been trying to use the regular OROMatcher-1.1 expression package downloaded from apache.org.
    it works well with my program but i m having problems building correct regular expression to strip off HTML tags.
    can any of u help me build an expression tha strips of ALL html tags including those with funny spaces such as:
    <a href = "www.here.com">click me</a>
    do help pls. i've tried for ages and its driving me mad

    Hi,
    Wont go into much details but the simplest way to do that would be using XML technology. Try using SAX or DOX whatever you feel comfortable with. I think SAX would be a better choice. For details visit
    http://java.sun.com/xml/?frontpage-spotlight
    /khurram

Maybe you are looking for