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     Conditional coloring

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Conditional coloring
 Login/Join
 
Member
posted
Hello all!

I have a report and I want to conditionally color the last 2 columns when they are withing 90 days from the current date.

In my STYLESHEET I have setup 2 conditional stylings:

type=data, COLOR=red, column=FB_PLUS, WHEN=redFlag eq 'Y', $
type=data, COLOR=red, column=AEND, WHEN=redFlag eq 'Y', $

Naturally, in the report I define the redFlag to be Y when the date difference is <= 90.

The problem is the styling is only applied when I print out redFlag, but I do not want to have to print out this flag. What am I missing here?


Dev: WF 5.2.1
Production: WF 5.2.1
Testing: WF 7.1.3
 
Posts: 26 | Registered: October 30, 2006Report This Post
Virtuoso
posted Hide Post
Use column notation with NOPRINT instead of the fieldname, e.g.:
 
TABLE FILE CAR
PRINT CAR
BY COUNTRY NOPRINT
ON TABLE SET STYLE *
TYPE=DATA,COLOR=RED, COLUMN=CAR, WHEN=N1 EQ 'ENGLAND',$
ENDSTYLE
END


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
Hi,

Just add your field in the TABLE with NOPRINT like this :

TABLE FILE
PRINT/SUM redFlag NOPRINT
...
END

or

TABLE FILE
PRINT/SUM COMPUTE redFlag/format = expression ; NOPRINT
...
END

Regards,
Michel


WF 8.1.05M/8.2.06,CentOs,Windows,Oracle ,Postgress
 
Posts: 14 | Location: Canada, U.S.A., Ivory Coast | Registered: February 02, 2007Report This Post
Member
posted Hide Post
Ok thanks guys I got it to work by using NOPRINT.

Maybe this should have occured to me, but then again NOPRINTing something in a list of things to print seems a little funny ;]


Dev: WF 5.2.1
Production: WF 5.2.1
Testing: WF 7.1.3
 
Posts: 26 | Registered: October 30, 2006Report This Post
Virtuoso
posted Hide Post
Sounds like it's solved, but as an explanatory note, it has to do with the values being available in the internal matrix. By including in in the verb clause, it is added to the matrix, but the NOPRINT excludes it from the printed output.
In order for the Conditional styling to work, it has to have the value of that field somewhere. Even if it is defined, it isn't available unless it's in the PRINT/SUM. You'll find this applies in several circumstances.


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Conditional coloring

Copyright © 1996-2020 Information Builders