Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Highlight Keywords

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Highlight Keywords
 Login/Join
 
Member
posted
I have to search comments and look for a keyword (i.e. broke). The user wants to create an excel report with the keyword highlighted. I can do this when the report is created in html, but not excel. Any ideas on how to only highlight a keyword within comments varchar(2000)?

This message has been edited. Last edited by: Kerry,
 
Posts: 9 | Registered: October 24, 2006Report This Post
Virtuoso
posted Hide Post
You're not going to be able to do it with any stylesheets, but you could "fool" it into displaying a string as bold, colored, etc. using HTML tags. Excel knows what to do with them.

Try doing a string replace of the keyword, replacing it with <b>keyword</b>. Like

COMPUTE H_COMMENT/A2200=STRREP(200,COMMENT,7,'keyword',14,'<b>keyword</b>',2200,H_COMMENT);


And then include

ON TABLE SET HTMLCSS ON
ON TABLE SET ONLINE-FMT EXL2K


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Member
posted Hide Post
Last time -

it displays starting 'bold' html tag, then the keyword, then the ending html bold tag.

It doesn't actually bold the keyword. If I paste the contents of the cell here, it will display as bold, because it's resolving the html tags.
 
Posts: 9 | Registered: October 24, 2006Report This Post
<JG>
posted
use a very simple template /macro

Write your keyword into a cell in your output in your HEADING (for example cell A1)

Create an Auto_Open or Workbook_Open macro in your template

xlEqual means it must be an exact match for content but not case.

Cells.Select
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=$A$1"
With Selection.FormatConditions(1).Font
.Bold = True
.Italic = False
.ColorIndex = 4
End With
Range("A1").Select
Selection.ClearContents
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Highlight Keywords

Copyright © 1996-2020 Information Builders