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.
Unfortunately CSS classes are not used here, seems like a cheesy, non-21st century way to do things, but you could change the font and background color here (make a backup).
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
2) I'd like it to work with COMPUTEd and DEFINEd fields.
That's not possible.
There are several open NFR's specifically for that.
The only way to do that at the moment is to have either an alternate master that you reallocate the the file to use, or to dynamically rewrite the master as needed.
This is all so very interesting... I've found that if WebFOCUS cannot do some (of great value) then, eventually, IB will make it do it (for the most part)... So, the NFR is OK for #2... #1 still needs to be addressed...
Thanks...
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Old mock up using CSS and mouseover hover. Does not use POPUPDESC. Used the example Francis gave in [SOLVED] Event on a report cell. Don't remember where I found the CSS on the web. Maybe this will help you in change the background colors.
-HTMLFORM BEGIN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<style type="text/css">
span.tool {
position: relative; /* this is key */
cursor: help;
}
span.tip{
display: none; /* so is this */
}
/* tooltip will display on :hover event */
span.tool:hover span.tip{
display: block;
z-index: 100;
position: absolute;
top: 0px;
left: 0px;
width: 100px;
padding: 3px;
border: 1px solid #333366;
background-color: #ffdddd;
font: normal 8pt arial, helvetica, sans-serif;
text-align: center;
color: #000000;
}
</style>
-HTMLFORM END
SET HOLDLIST=PRINTONLY
-RUN
TABLE FILE CAR
PRINT
COMPUTE COLOUR_FLAG/A1 =
IF SALES GT 40000 THEN '4' ELSE
IF SALES GT 30000 THEN '3' ELSE
IF SALES GT 20000 THEN '2' ELSE
IF SALES GT 10000 THEN '1' ELSE
IF SALES EQ 0 THEN '0' ELSE
'9'; NOPRINT
COMPUTE COLOUR_TEXT/A20 =
IF SALES GT 40000 THEN 'Sales > 40,000' ELSE
IF SALES GT 30000 THEN 'Sales > 30,000' ELSE
IF SALES GT 20000 THEN 'Sales > 20,000' ELSE
IF SALES GT 10000 THEN 'Sales > 10,000' ELSE
IF SALES EQ 0 THEN 'Zero sales' ELSE
'Sales < 10,000'; NOPRINT
COMPUTE MOUSEOVER/A255 =
IF COLOUR_FLAG EQ '0' THEN
'<span class=''tool''>' | FTOA(SALES, '(D6)', 'A20') |
'<span class=''tip''>' | COLOUR_TEXT | '</span></span>'
ELSE FTOA(SALES, '(D6)', 'A20'); AS 'Sales'
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SET ASNAMES ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=10, $
TYPE=DATA, COLUMN=MOUSEOVER, BACKCOLOR=RED, WHEN= COLOUR_FLAG EQ '0', $
TYPE=DATA, COLUMN=MOUSEOVER, BACKCOLOR=GREEN, WHEN= COLOUR_FLAG EQ '1', $
TYPE=DATA, COLUMN=MOUSEOVER, BACKCOLOR=BLUE, WHEN= COLOUR_FLAG EQ '2', $
TYPE=DATA, COLUMN=MOUSEOVER, BACKCOLOR=ORANGE, WHEN= COLOUR_FLAG EQ '3', $
TYPE=DATA, COLUMN=MOUSEOVER, BACKCOLOR=PINK, WHEN= COLOUR_FLAG EQ '4', $
TYPE=DATA, COLUMN=MOUSEOVER, BACKCOLOR=PURPLE, WHEN= COLOUR_FLAG EQ '9', $
ENDSTYLE
END