IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] About Conditional Formatting
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Guru
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,


Prod WF 7.1.3 (z90/Suse Linux) DB (Oracle 10g), Self Serv, Report Caster, WebServer Win2003
 
Posts: 300 | Location: Oklahoma City | Registered: October 27, 2006Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
Try playing with the Item number...it may not really be 5.


WebFOCUS 7.6.1 Win 2003 Test -7.6.5
 
Posts: 1177 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Guru
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.


Prod WF 7.1.3 (z90/Suse Linux) DB (Oracle 10g), Self Serv, Report Caster, WebServer Win2003
 
Posts: 300 | Location: Oklahoma City | Registered: October 27, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
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

WebFOCUS 7.1.3 /// Windows 2003 Server /// Oracle Data Sources /// HTML, PDF, EXCEL Output
 
Posts: 933 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
You got it before I could post. Good job.


Thanks!

Mickey

WebFOCUS 7.1.3 /// Windows 2003 Server /// Oracle Data Sources /// HTML, PDF, EXCEL Output
 
Posts: 933 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] About Conditional Formatting

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.