Highlight words in link column..how to retain case?

I learned a lot from this thread... Highlight Search results within a linked column ...and I have the solution implemented and working perfectly...almost.
My query is essentially as follows...
select foo, bar, replace(upper(PROJECT_NAME),upper(:P2_SEARCH),'<spann style="font-weight: bold; color: red;">' || :P2_SEARCH || '</span>') as PROJECT_NAME_LINK
from Projects
where upper(PROJECT_NAME) like '%' || upper(:P2_SEARCH) || '%';
Without the search and highlight words enabled...the result is essentially...
foo1 bar1 ABC123
foo2 bar2 EFG456
With the search and highlight words enabled...the result for searching on "a" is...
foo1 bar1 aBC123
My small remaining issue is that the replaced and highlighted search term is always inserted in the case (upper/lower) that the search term was entered. In contrast, the default method utilized by ApEx seems to be able to retain the case when highlighting the text.
Any idea how I can retain the case within my highlight words link column?
Any idea how the ApEx function does this? (maybe the concept can be applied)
Matt

I talked to Raj who posted the original solution to my issue in the above referenced thread from 2001.(apparently this forum rendered out some of his posting which made it hard to understand...)
select decode(instr(upper(emp.ename),upper(:P1_SEARCH)),
0, emp.ename,
substr(emp.ename,1,
instr(upper(emp.ename),upper(:P1_SEARCH)) - 1)
|| '<spann style="color:blue;">' ||
substr(emp.ename, instr(upper(emp.ename),upper(:P1_SEARCH)),
length (:P1_SEARCH))
|| '</spann>' ||
substr(emp.ename, instr(upper(emp.ename),upper(:P1_SEARCH)) + length(:P1_SEARCH) )) my_column_alias
from emp;
(be sure to correct the spelling of "spann")
This solution works great...thanks Raj!
Matt

Similar Messages

  • Safari is highlighting words and linking them to ads? also getting a lot of pop ups

    Safari has started randomly highlighting words and linking them to ads? I'm also getting a lot of pop up ads in new windows and tabs. I googled how to get rid of it and people said to delete extensions and cookies and also block cookies from third parties and advertisers. I've done all this but it is still happening. Any suggestions??

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How to disable links which show up as highlighted words in all text on-screen

    Recently (possibly since the installation of a "Flashplayer" update, certain words (usually nouns) appear as highlighted in any text on screen. When clicked on, the word-links open a new tab, dealing with a topic related to the word. These are annoying, and the highlighted word often cannot be read, as it shows up in red, on a background which may also be red.
    I want to disable this "quick-link" ability. Please tell me how 'tis done. Thanks

    You can look at Adblock Plus.
    * Adblock Plus: https://addons.mozilla.org/firefox/addon/adblock-plus/
    You need to subscribe to a Filter list (e.g. the EasyList).
    * http://adblockplus.org/en/subscriptions
    * http://adblockplus.org/en/getting_started
    * http://en.wikipedia.org/wiki/IntelliTXT

  • I am looking at a web page with highlighted words that are links that open new windows. I don't even click on them and they upen as I pass over them accidentily with the cursor. extremely annoying!what is it called and how can I remove this 'feature'

    it is usually one highlighted word that when touched, opens up a small window of related companies or info or websites that I might be interested in. one word "presenter" was highlighted, touched it with my cursor, and I think caught a damaging virus.

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode].
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > '''Use hardware acceleration when available'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Options > Advanced]. All these settings/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme or hardware acceleration is causing issues.

  • Does Firefox place links to search pages into email messages in Yahoo that are connected to particular highlighted words?

    I have Yahoo mail. Recently, in my emails (sent and received), there are certain words that show up highlighted. When I put the cursor over the word, it links to a search page related to (or supposedly related to) the word. This happens for words in English and particularly for words in Spanish.
    I want to know who is doing this and how they have access to my private emails to place the links!
    I don't know if it is a Yahoo, Windows or Firefox problem.

    This issue can be caused by an old bitmap version of the Helvetica or Geneva font or (bitmap) fonts that Firefox can't display in that size.
    Firefox can't display some old bitmap fonts in a larger size and displays gibberish instead.
    You can test that by zooming out (View > Zoom > Zoom Out, Ctrl -) to make the text smaller.
    Uninstall (remove) all variants of that not working font to make Firefox use another font or see if you can find a True type version that doesn't show the problem.
    There have also been fonts with a Chinese name reported that identify themselves as Helvetica, so check that as well.
    Use this test to see if the Helvetica font is causing it (Copy & Paste the code in the location bar and press Enter):
    <pre><nowiki>data:text/html,
    Helvetica<br><font face="Helvetica" size="25">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font><br>
    Helvetica Neue<br><font face="Helvetica Neue" size="25">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font>
    </nowiki></pre>
    You should reset the network.http prefs that show user set on the about:config page.<br />
    Not all websites support http pipelining and if they do not then you can have issues with images or other problems.
    See also http://kb.mozillazine.org/Images_or_animations_do_not_load#First_steps

  • How to send single id value in apex url on clik of link column in report

    Hi,
    Im using the following code to generate a report, in which BP_NAME is a link coloumn ,So I want to send the id(best_attachment table column ie bpa_id) to the next page(6) when I click on the link.If I hoover my mouse on the link it is showing the url like
    ..../f?p=114:31:5954054962330632:REQ:NO:P6_BP_ID:6,12,14(for the record 30 and if it is a two name it will pass two id)
    But i need to pass only one id on click of a link ,but in the url it showing three id.
    ===code====
    select bp_id,
    (select LISTAGG(BP_NAME, ';') WITHIN GROUP (order by BP_NAME) from best_attachment bpa where bpa.bpa_bp_id = bp.bp_id ) BP_NAME
    from best_practices bp
    ===========
    Ex
         Link column<br>
    10 Whalen
    20 Hartstein
    30 Raphaely;
         Khoo;
         Tobias;
    40 Mavris
    If I click any name on 30 record that is Raphaely, Khoo,Tobias It is showing the three id in the url and passing the same. Pls tell me how to pass single id(bpa_id) on clik of a link.And how to alter the above code to achive the same.
    Regards
    Balaji

    No One :(

  • If I post a Word document on my website, I want to share the link. Firefox won't let me do that. It forces me to download the document. It won't go to the link. How can I get it to do that? Can I?

    My question was already detailed: If I post a Word document on my website, I want to share the link. Firefox won't let me do that. It forces me to download the document. It won't go to the link. How can I get it to do that? Can I?
    Here's an example. I want Firefox to go to this link:
    http://www.therevdrcharleswallen.com/CV2008.doc
    It won't. Explorer will go there, but Firefox won't. I don't want to open an extra document. I want to visit the site in my browser.

    Firefox can't handle MS Office documents and you will have to open such a file in an external Office program of viewer.
    * http://www.microsoft.com/downloads/en/details.aspx?FamilyID=3657ce88-7cfa-457a-9aec-f4f827f20cac
    See also:
    *http://mozillalinks.org/wp/2007/09/openofficeorg-documents-within-firefox/

  • Highlight a Link column

    Hi,
    I m using Oracle 11g and Apex version 4.0.2.
    In report, Is it possible to highlight the link column when it is clicked ?
    I have tired , but when I click its highlighting, but until user clicks the next linked column it should be highlighted.
    Is it possible?
    Thanks,
    vk.

    Hi,
    thanks for the reply.
    But my requirement is bit different. I need to highlight the first report column, which is linked to same page with different report(say second report) and the clicked linked field of first report column should be highlighted until user clicks another linked column of first report.
    I m using standard theme 'Sand'.
    Regards,
    vk.

  • How to remove highlighted word ads on web pages. Tried everything

    Hi everyone. Haviing a problem with highlighted words ads on web pages. Tried everything. Went safari / preferences / extensions. Removed everything. The problem remains. Can anyone help me on this one?

    you may have Genieo installed
    see
    http://www.genieo.com/faq/#q20
    Note that, if Genieo is installed, using the recommendations that Genieo themselves provide on that page will not remove it. They cannot be trusted, and their uninstaller is known not to remove everything. Proper Genieo removal instructions can be found in my Adware Removal Guide.
    I don't believe this is a Genieo problem, though. Genieo usually just hijacks the search engine. It doesn't cause the random underlined words that cause ads to pop up. That's going to be caused by some other adware, probably also described in my Adware Removal Guide.
    (Fair disclosure: The Safe Mac is my site, and contains a Donate button, so I may receive compensation for providing links to The Safe Mac. Donations are not required.)

  • How to remove highlighted word on safari which cause pop-up ads

    Hello
    How can I remove highlighted words in safari? it also pop up ads when I move marker to these words. I am attaching a picture which shows clearly what i mean.
    after every highlighted word it can also be seen a green symbol.
    waiting eagerly for your replu

    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • How do you highlight words

    How Do you highlight words ??

    Select the text.
    Click the Character Background Fill color rectangle..
    Click on a color...
    And your text is highlighted...
    Jerry

  • When I right click on a highlighted word I am prompted to search with AVG. I would prefer to search using an alternative search engine. How do I change this?

    When I right click on a highlighted word I am prompted to search with AVG. I would prefer to search using an alternative search engine. How do I change this?

    Reply: Cor-el > Excellent!! Thank You. In Tools, Add Ons, Extensions there was a Default Tab enntry which was the culprit. Am running W7 so the XP Tools, Options, Advanced , Use Hardware acceleration when available, wasn't of much help here, however I did fix a problem on another computer running XP with that same fix. Thank You very much! HD

  • How to highlight word(s) with different colors?

    I have Mail, Version 3.2 (919/919.2)
    Re: color
    I see that it is possible to change the color of text and to change the color of the entire field background, but I want to be able to HIGHLIGHT certain words with light colors like yellow, not just change the color of the text.
    Is it possible to HIGHLIGHT word(s) in Mail?
    If so, how? I looked at all the options and read the Help etc.
    Lorna in Southern California
    web.mac.com/lorna6

    OK, outgoing messages. For some reason I thought you wanted to flag stuff in received mail. Mail Tags is certainly not what you want.
    Can you recall what keys or key combinations you used in Tiger? I presume it did more than simply change text to bold?
    If you have selected Rich Text in Mail's Preferences/Composing you can colour the text. Use Format/Show Colors to bring up the floating colour window (if you need it a alot have it up all the time) and when you select some text and click on one of the colours it will be changed to that colour - but not highlighted.
    AK

  • How to create a dynamic action from link column in classic report

    I Have an apex page that display a modal window utilizing jquery. In the modal window I have a classic report with a link column that I want to capture its click event.
    I was thinking I could create a dynamic action with selection type=jquery selector. Not for sure if I need to do anything on link column and do not know the syntax
    for jquery selector. Would appreciate any help or direction???

    Thank you for your response. I am very new to Jquery so don't understand all that well.
    What I did:
    I created a dynamic action
    Event: Click
    Selection Type: jQuery Selector
    jQuery Selector: tdheaders
    Created True Actions
    I created an alert to see if this is being executed.
    Alert 'I made it here'
    What I have:
    I created a report region with the following query:
    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    I created 'SELECT' column as Link Column
    Report Attributes
    Link Text Select
    Target Page in this Application
    Page 2
    Region Header
    <div id="ModalForm2" title="Employee List" style="display:none">
    Region Footer
    </div>
    This report is displayed in a modal form when a button is clicked.
    Code for modal window in Page Header
    <script type="text/javascript">
    $( function() {
    $('#ModalForm2').dialog(
    { modal : true ,
    autoOpen : false ,
    buttons : {
    Cancel : function() {
    closeForm2();
    function openForm2()
    $('#ModalForm2').dialog('open');
    function closeForm2()
    $('#ModalForm2 input[type="text"]').val('');
    $('#ModalForm2').dialog('close');
    </script>
    I am trying to capture the click event on the link column of the report in the modal form. I want to pass a couple of column values
    back to the main form and close the modal window. I do not want to do the submit that happens if I click on the link column and link back to the main page(2)
    If I let the submit to happen, all other entered fields are cleared on my main form.
    Just don't understand the jQuery selector. I have no problem catching the button clicks on the modal form.

  • How to make a grid column a linked column?

    Is there any way to make a grid column a linked column?
    I have a cardcode column in a grid, which I want to link with BP master link object.  If I try to do it the same way I do for matrix, it gives me 'specific cast not valid' error; whereas the same property works fine with matrix.
    help will be appreciated...
    Binita

    You need to do the following:
    string colUid = "yourUid";
    oGrid.Columns.Item(colUid).Type = BoGridColumnType.gct_EditText;
    EditTextColumn col = (EditTextColumn)oGrid.Columns.Item(colUid)
    col.LinkedObjectType = "2"; //2 = Buisness Partner (The id behind the BoLinkeObjectType as a string)

Maybe you are looking for