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] Conditional Formatting

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Conditional Formatting
 Login/Join
 
Guru
posted
Can anyone point out what I am doing wrong here? Well don't point out everything Smiler, but I cannot seem to figure out why my formatting is not taking place.

When I tested this, it worked fine, but I only had 1 record that had PRC_EFF_DAT GT than CURRDATE. New records have been added and my conditional formatting went away.

Thanks for the help

 DEFINE FILE FAM_CAT_PRC
CURRDATE/YYMD=&YYMD;
END
SET BYDISPLAY=ON
TABLE FILE FAM_CAT_PRC
SUM
	  STD_PRC
	  PRC_EFF_DAT NOPRINT
	  CURRDATE NOPRINT
ACROSS SITE_NUM AS ''
BY FAMILY_CAT_ID NOPRINT
BY MAJOR_CATEGORY_DES
BY FAMILY_CATEGRY_DES
BY LINK_ID
BY PROD_DES
WHERE MAJOR_CATEGORY_DES = &MAJOR_CAT_DES.(OR(FIND MAJOR_CATEGORY_DES IN MAJOR_CATEGORY)).MAJOR_CAT_DES.;
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=STD_PRC, BACKCOLOR=YELLOW, WHEN=PRC_EFF_DAT GT CURRDATE ACROSS SITE_NUM, $ 

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


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Guru
posted Hide Post
first question- why is your across statement in your when statement


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
Expert
posted Hide Post
Without looking too deep, have you tried
TYPE=DATA, COLUMN=STD_PRC(*), BACKCOLOR=YELLOW, WHEN=PRC_EFF_DAT GT CURRDATE, $

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Guru
posted Hide Post
quote:
Originally posted by nubi:
first question- why is your across statement in your when statement


Sorry, miss print, it should be

 TYPE=DATA, COLUMN=STD_PRC, BACKCOLOR=YELLOW, WHEN=PRC_EFF_DAT GT CURRDATE, $ 



Tony - I tried your suggestion, still no formatting.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
Tom,

Where in the manual?

I'd love to see a working example.

This doesn't work:

TABLE FILE CAR
SUM
SALES
LENGTH 
COMPUTE FLAG/A1 = IF LENGTH GT 200 THEN '1' ELSE '0'; NOPRINT
ACROSS SEATS
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA,  COLUMN=SALES, BACKCOLOR=YELLOW, WHEN=FLAG EQ '1', $
ENDSTYLE
END

It only works for the first column, as I expect it to.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Tom

I thought I had read that if you have 2 or more conditions that you need to use an IF/THEN/ELSE to give a TRUE/FALSE for conditional formatting. If it's a single condition then what I had should of worked, which it did, when I tested it in the first place with just a single record meeting this criteria.

Since now I have multple records the formatting is not happening.

I tried your sugestion and that still did not accomplish this. I will keep poking around.

Thanks for the suggestions so far.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
quote:
I purposely left out the correct syntax so the manual would be checked

That's a waste of time.

Thanks for posting a working example.

I thought that COLUMN=SALES would not work, why waste time with posting the wrong syntax?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
MattC, try ACROSSCOLUMN instead of COLUMN in the stylesheet.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Thanks Francis, that worked.

I apologize for being new at this. I do try and research as much as possible before posting up here.

Thanks again.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
MattC,

I gathered that you had tried researching this problem - I'm sorry other people are wasting our time.

Regards,

Francis.
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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] Conditional Formatting

Copyright © 1996-2020 Information Builders