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     [SOLVED] About Conditional Formatting

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] About Conditional Formatting
 Login/Join
 
Master
posted
I have 5 fields in a heading line. By default, I want these fields to be bold and backcolor yellow. (This is HTML output). I do this with:
 TYPE=HEADING,
      LINE=9,
      OBJECT=FIELD,
      STYLE=BOLD,
      BACKCOLOR=YELLOW,
$

However, if the last field, is >= 2000, I want it to be bold, color yellow, backcolor red. I tried this:
 TYPE=HEADING,
      LINE=9,
      OBJECT=FIELD,
      ITEM=5,
      STYLE=BOLD,
      COLOR=YELLOW,
      BACKCOLOR=RED,
      WHEN=TB_BEG_BAL GE 2000,
$

I don't get an error, but it seems to ignore the WHEN clause. Can one use WHEN with Headings?

This message has been edited. Last edited by: Kerry,


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
Try playing with the Item number...it may not really be 5.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Master
posted Hide Post
I figured it out. As this report is a free-form report with nothing but heading, I just had a BY phrase that will be used for bursting. I had to add a SUM TB_BEG_BAL NOPRINT, then the formatting took. It appears that for WHEN to work, the field has to be part of a PRINT, SUM, COUNT, etc. command.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
Also make sure the field you are using the the WHEN statement is included on your report. It can be there with a NOPRINT. It just needs to be there whether or not you show it as a column.

WHEN=TB_BEG_BAL GE 2000


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
You got it before I could post. Good job.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report 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     [SOLVED] About Conditional Formatting

Copyright © 1996-2020 Information Builders