Highlighting searched text

Hi,
I have a little parameterised report, with a search region and and reports region below.
So the user would lets say enter in a surname and press the Go button. Then in the report all of the records returned containing the search text are say coloured Red.
Let's say I search on the the string 'Ander' and press Go, in the results in the report I would see and the surname begining wiht 'Ander' and that text highlighted or in a different colour. Just to show the user what they have searched on.
I really hope I have made some sense.
Many thanks in advance.
Niels

Hi Niels,
To alter the way the returned text looks to the user, you would have to alter the text.
You could try
replace(string_searched, string_searched_for, '<font class="my_highlight_class">'||string_searched_for||'</font>')Regards
Michael
Edited by: MKii on Jul 14, 2009 1:00 PM

Similar Messages

  • Highlighting  all  the occurrences of the search text

    Hello All,
    can anybody tell me how to highlight the search text in HTML in JSP.
    I have this String...
    MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV
    and I want to highlight, just QAISTTF GAN, GMLLLITALG, LAAV and change the font color of the search text.
    Any help would be appreciated.

    If I do like that, search string is displayed, but it is below the main string.
    MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV
    QAISTTF GAN, GMLLLITALG, LAAV ...... I don't want like this.
    I want the main string and in that, what ever I want to search has to be highlighted.
    MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV

  • How search text in current frame of external swf?

    Hello Everyone
    I am loading an external swf using loader.
    How do search and highlight the text in the current frame only?
    Is there a frame class which I could use?
    Thanks

    This is not likely to be possible in the general case, depending on what you mean by "searching text"
    For instance, a Word doc might have the text "Hello, world!" when viewed in Word, but that doesn't mean that the sequence of characters 'H', 'e', 'l', 'l', 'o', etc., exists in the file. There might be one letter, then some binary data indicating that the next letter is some other font or color, then one more letter, then more binary data, etc.
    Conversely, there could be textual metadata in a "binary" file that a person reading the file in the appropriate viewer would never see. Unless you know the details of the format you're reading, you won't be able to distinguish that from "real text".
    And what do you mean "strings" is not efficient? Have you tried it? Does it do what you want? Did you measure and determine that it does not meet your well-defined performance requirements? It's unlikely you'll be able to write code that does the same thing as "strings" but more "efficiently."
    The first step is to put more realistic boundaries on your requirements and define them more precisely. "Extract text from any binary file," is not a valid, meaningful, or reasonable requirement.
    EDIT: I may have misunderstood your requirements. I thought you wanted to "extract all text" from binary files. If that's not what you meant, and you're looking more to replicate grep, then follow Joachim's advice.
    Edited by: jverd on Mar 29, 2010 1:33 PM

  • Reader XI 11.0.01: Shapes yes; sticky notes yes; highlighter/other text NO. Please help. Thanks.

    Reader XI 11.0.01: Shapes yes; sticky notes yes; highlighter/other text NO. Please help. Thanks.

    Thank you so much...
    2. [first] The problem is within the application; I wasn't trying while in a browser.
    3. There is no response upon clicking buttons, which prompted me to search for quite a long time in an attempt to find some "help," in case I was somehow performing the action incorrectly. [The Reader "Help" is in name only on this subject, but I can now see why...].
    1. [eureka] When I read your question #1 and began considering the possibility of corruption or something (the ever-lurking gremlins?) I realized that I was working with a PDF from a scan, and that that was probably the issue. I immediately opened one saved from a website and it worked perfectly and as expected. I opened a different scan-to-PDF and got the same original trouble.
    I'm glad one can still draw circles and attach sticky notes....
    Thanks again!

  • Enable Highlight Search Result in RH8 for Word

    Hi all,
    Is the search option "Enable Highlight Search Result" available under RoboHelp 8 for Word?  I can find the option in RoboHelp 8 but I can't find it under the RH8 for Word application.
    Any pointers or advice would be really helpful.
    Cheers,
    Leigh.

    Thanks Peter.
    Appreciate you answering this one.
    It's a pity this is not an option as I have word docs already written for a User Guide and the text highlighting option in searches is really helpful to narrow down where seach strngs are located within large topic pages.
    I guess I could copy and paste the word content manually into a RoboHelp HTML project instead.
    Thanks again,
    Leigh.

  • RoboHelp 5.0 - Highlight Search Terms

    Hello,
    I found the following page about highlighting search terms through Adobe’s forum:
    http://www.grainge.org/pages/various_rh_projects/highlighting/index.htm   
    However, I was unable to download the Javascript .zip file from http://www.calvinly.com/weblog/000111.html     (the actual link is  http://www.calvinly.com/robohelp/highlight_search_X5.zip ).   Is there another way to locate this file?
    Thank you,
    Connie

    Hello,
    I found the following information at
    http://www.grainge.org/pages/various_rh_projects/highlighting/index.htm
    Reference the Javascript File
    The script is referenced by adding the following to in the <head> section of the page.
    <script type="text/javascript" src="highlight.js"></script>
    You can name the javascript file whatever you want as long as you amend the above accordingly. You will also need to enter path details if the topic is not in the root of the project. Click here if you need help with setting the relative path.
    Call the Javascript Function
    The topic you are reading calls the script by inserting the following immediately before the closing </body> tag.
    <script type="text/javascript"><!--
    beginSearch ();
    //--></script>
    This looks like a great feature.  Can someone help me to locate a copy of the highlight.js file?  (when I tried to download this file from http://www.grainge.org/pages/various_rh_projects/highlighting/index.htm I got a "file not found" message).
    Many thanks,
    Connie

  • Highlight Search Words in Interactive Report

    I have been searching and searching for days for a solution to highlight the search words in the IR. I was thinking to grab the search field value and do a global replace in the report region, but it looks like the search report is generated by javascripts. I really appreciate if anyone can help me out..thanks
    Edited by: 889129 on Oct 3, 2011 10:19 AM

    Is this the kind of thing?
    http://apex.oracle.com/pls/apex/f?p=579:45
    Basically, implement this JQuery plugin
    http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html
    Then create a hidden/unprotected item 'P45_SEARCH'
    Next create 2 x dynamic actions:
    1. Before Region Refresh run JS
    $("#P45_SEARCH").val($("#apexir_SEARCH").val());2. After Region Refresh run JS
    var lv_search = $('#P45_SEARCH').val();
    if (lv_search) {
    $('td').highlight(lv_search);
    }I've not had time to polish it, but it might give you some ideas.
    I hope it helps
    Shunt

  • Highlight a text while I'm typing

    How can I highlight a text while I'm typing? For example, as soon as the user of my application has typed the word "void" in my JTextPane, the word "void" becomes green. How can I do it? Is it possible with only the class Highlighter (etc.) or the class Document/StyleConstants (etc.)?

    Is it possible with only the class Highlighter (etc.) The highlighter highlights the background, not the text.
    Search the forum using "syntax highlighting" to find solutions that have been proposed over the years.

  • Highlight search string in a pl/sql report

    Hi all,
    I followed the example of QBE by Scott Spendolini. I got it working. But I am trying to add the highlight search string functionality, in the report created. The report is created from a dynamic pl/sql query. Can you give me any ideas or an example? Thank you for your time in advance,
    Rgds,
    Suma.

    Hi Suma,
    Your Search button runs a process called "RUN_REPORT". Presumably, this process picks up the values from the tabular form to construct the new SQL statement.
    Given that you don't have a normal report definition - ie one that you can use the Highlight Words option - the only other possibility is to adjust the SQL query results.
    Let's assume that you have in your RUN_REPORT process a variable called vJOB that holds the JOB value from your QBE grid. Your SQL statement could then be adjusted to something like:
    SELECT EMPNO,
    ENAME,
    '&lt;span style="color:red"&gt;' || JOB || '&lt;/span&gt;',
    etc
    FROM EMPTABLE
    WHERE JOB = vJOB;
    Obviously, without seeing your code, I can not say exactly how it should be constructed to highlight the word(s), but the above should give you an idea of what you need to do. If you're still not sure, can you please paste into this thread the RUN_REPORT code.
    Regards
    Andy

  • How to highlight a text in Pqges?

    Hi, does anyone knows how to highlight a text in Pages for iPad??

    If you would like to see this very basic function added to Pages for iOS in the future, let the good folks at Apple know of your needs:
    http://www.apple.com/feedback/

  • TS3899 I recently discovered that I can no longer access websites pointed to within the content of an email message on my iPad Air by clicking on the highlighted HTML text or symbols. What should I do to correct this issue?

    I recently discovered that I can no longer access websites pointed to within the content of an email message on my iPad Air by clicking on the highlighted HTML text or symbols. What have I done to create, and what should I now do to correct, this issue?

    Or you could include a width to your body style:
    body {
    background-image: url(Logo/sky1.jpg);
    background-position: center center;
    background-attachment: fixed;
    width: 75%;}
    It might work or not depending on your other color scheme.

  • Search text in sql server 2000

    how can i preapre a script to search all stored procedure, view, etc. which contain search text. just list out all the sp name, view name.

    select distinct
    object_name([id]) as obj_name,
    case
    when objectproperty([id], 'IsProcedure') = 1 then 'stored procedure'
    when objectproperty([id], 'IsScalarFunction') = 1 then 'scalar function'
    when objectproperty([id], 'IsTableFunction') = 1 then 'table function'
    when objectproperty([id], 'IsView') = 1 then 'view'
    end as obj_type
    from
    syscomments
    where
    objectproperty([id], 'IsProcedure') = 1
    or objectproperty([id], 'IsScalarFunction') = 1
    or objectproperty([id], 'IsTableFunction') = 1
    or objectproperty([id], 'IsView') = 1
    and objectproperty([id], 'IsMSShipped') = 0
    and [text] like '%orderid%'
    order by
    obj_type, obj_name
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Acrobat 9 Pro: Cannot copy highlighted text unless I un-highlight the text

    I have highlighted text in a document. When I go to copy that same text, it selects the entire sentence. I right-click, the menu starts with "Set Status." There is no "copy" option. Neither is control-C successful. When I next paste, it pastes a previously selected text, not the text I am attempting to copy in Acrobat. The only way I have found to copy the highlighted text is to un-highlight it, and then copy it. Are there any other solutions?
    Thanks!

    Thank you! This works. I pressed "shift," then highlighted the text I want to copy, and right-click (while still holding down "shift" key), and "Copy" finally appears in the menu.

  • How to highlight a text in Adobe reader plugin uisng code?

    I am using VC++ to create tyhe Activex control( Adobe Reader plugin). Through code I am able to view the pdf. But now i want to highlight some text in the reader. Is it possible to do it.

    Is it not possible to create highlight annotations using the SDK? At any rate, you should ask over at the Acrobat SDK forum...

  • How to change the color of letters instead of highlight the text when compare two documents

    Hello!!
    I have the Adobe Acrobat 9 Pro (Versión 9.0.0) and I need to compare two documents, but I want to show the diferences changing  the color of letters instead of highlight the text with any color. My boss tell me that other Acrobat version have this option, but I couldn't find it in this version.
    Could you help me on this topic??
    Thanks

    Hello!!
    I have the Adobe Acrobat 9 Pro (Versión 9.0.0) and I need to compare two documents, but I want to show the diferences changing  the color of letters instead of highlight the text with any color. My boss tell me that other Acrobat version have this option, but I couldn't find it in this version.
    Could you help me on this topic??
    Thanks

Maybe you are looking for

  • Transferring playlist to new laptop from external hard drive and old laptop

    I've seen similar topics before but none exactly describing my situation. I currently have itunes installed on my work laptop, but have the majority of my music on my external 120GB hard drive. When I add songs to itunes, I add them from the music fo

  • 24" display questions

    Hi, im close to placing an order for a mini (I use a 24" Imac in work) and want a 24" display for my work at home. I have seen 2 possible displays Dell 2408 (16:10, 1920 x 1200) and the dell 2409 (16:9, 1920 x 1080). My questions are: 1. can the I ma

  • 20" Display starting to "burn in"

    After having my Apple 20" display for just over a year (literally 12 months 5 days) the screen is starting to show evidence of burn in, I have had no problems with the display at all during the year, but today after leaving a browser open for about 1

  • Function to get a value interval

    Hi all, anybody knows a functions which return a value interval. F.e I´ve a MinValue and a MaxValue. During runtime the MinValue could be 0 and the MaxValue 5. Now i´m lookiing for a method or a function module returning me an internal table with the

  • Copy All Employee Master Data

    Dear All, In Human Recource module I have a list of Employees, Now I create new database and want to copy all Employee Master data from old database to new database . Please give me the solution for this problem. Thanks & Regards