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 Formatting?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Conditional Formatting?
 Login/Join
 
Silver Member
posted
I have a column that I want to show the data in only if the data in another column is equal to something.

Such as Column1 data should appear only if Column2 is equal to a certain value. Otherwise the data should not appear in column1 on the report.

I've tried doing this with condition through report painter. It says Column2 is equal to Value, but there doesn't seem to be an option that says only show when...column2 is equal to value.

What am I missing?
 
Posts: 45 | Registered: March 18, 2005Report This Post
Expert
posted Hide Post
You need to create a defined or computed field to do this, something like:

SALESX/P8 = IF DATE GT '20040101' THEN SALES ELSE 0;

Display SALESX in the report and not SALES.
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Ginny, that's probably best done with a DEFINE, where you set a value for field1 if field2 >0 else 0;
and format field1 to supress zero , /I8S , for example.
If you're in html, you can conditionally change the color of field 1 to white based on some WHEN= in the style sheet...but that's really cheating Razzer
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Silver Member
posted Hide Post
Hi Ginny,

Try following code may be useful for you...

DEFINE FILE Tablename
col3/I10=IF COL2 EQ COL1 THEN COL1 ELSE 0;
END

TABLE FILE Tablename
PRINT
ITEM
col3
COL2
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
END
 
Posts: 30 | Location: India | Registered: February 23, 2005Report This Post
Guru
posted Hide Post
I've done a similar conditional formatting, making the column text white unless it fits the condition. In that case you wouldn't need a defined field.
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Gold member
posted Hide Post
I agree with N.Selph. For example, if we know that all non-sedans in the car database have two seats we might write the code below to change the color of the text to match the background giving the effect of blanking it out. Try it out.

TABLE FILE CAR
PRINT CAR MODEL BODYTYPE SEATS
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=SEATS, COLOR=WHITE, WHEN=BODYTYPE NE 'SEDAN', $
ENDSTYLE
END
 
Posts: 90 | Location: Tinker AFB | Registered: June 03, 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     Conditional Formatting?

Copyright © 1996-2020 Information Builders