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 Styling in SUBFOOT

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Conditional Styling in SUBFOOT
 Login/Join
 
Gold member
posted
Hi All,

I need to show conditional styling on SUBFOOT on a particular field, I am not able to achieve this.

I get color on a particular field on SUBFOOT for the following code
 
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, BACKCOLOR='RED',$
 


But don't see any colors for the following code
  
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PCNT EQ 1, BACKCOLOR='RED',$
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PCNT EQ 2, BACKCOLOR='YELLOW',$
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PCNT EQ 3, BACKCOLOR='WHITE',$
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PCNT EQ 4, BACKCOLOR='GREEN',$


Please Help

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


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Silver Member
posted Hide Post
Hi,
TABLE FILE CAR
SUM
SALES RETAIL DEALER
BY COUNTRY
BY CAR

ON COUNTRY SUBFOOT
"SUBTOTAL<+0>HEADING
"WEBFOCUS REPORT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLESHEET *
FONT='ARIAL', SIZE=8, GRID=OFF, $
TYPE=SUBFOOT, HEADALIGN=BODY, STYLE=BOLD, JUSTIFY=RIGHT,$
TYPE=SUBFOOT,ITEM=1, COLSPAN=2, POSITION=COUNTRY, JUSTIFY=LEFT, BACKCOLOR=ORANGE, $
TYPE=SUBFOOT,ITEM=2,POSITION=SALES, BACKCOLOR=RED,$
TYPE=SUBFOOT,ITEM=3,POSITION=RETAIL, BACKCOLOR=GREEN,$
TYPE=SUBFOOT,ITEM=4,POSITION=DEALER, BACKCOLOR=BLUE,$
END


WebFOCUS 7.6.x
Windows
Output: Excel,PDF, HTML
 
Posts: 42 | Registered: September 28, 2007Report This Post
Virtuoso
posted Hide Post
Are you sure the values for PCNT are exactly 1, 2, 3 and 4?


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Platinum Member
posted Hide Post
quote:
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PCNT EQ 1, BACKCOLOR='RED',$


Just remove "OBJECT=FIELD," and code as
TYPE=SUBFOOT, BY=DUMMY3, ITEM=5, WHEN=PCNT EQ 1, BACKCOLOR='RED',$

I had a similar issue long ago. Just give a try.

-Hari
WF-769


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Gold member
posted Hide Post
Sorry! I found the mistake I did.
Instead of using computed field 'PCNT', I have to use my calculation in RECAP

Below corrected code

  
ON DUMMY3 RECAP
		 XCOMP/I11=X_COMP;
		 XNOT/I11=X_NOT;
		 XTOT/I11=XCOMP+XNOT;
		 XPCT/D7.2=XCOMP/XTOT*100;
		 PT/I1=IF XPCT LT 10 THEN 1 ELSE IF XPCT LE 50 AND XPCT GE 10 THEN 2 ELSE IF XPCT GT 50 AND XPCT LT 97 THEN 3 ELSE 4;
.
.
.
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PT EQ 1, BACKCOLOR='RED',$
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PT EQ 2, BACKCOLOR='YELLOW',$
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PT EQ 3, BACKCOLOR='WHITE',$
TYPE=SUBFOOT, BY=DUMMY3, OBJECT=FIELD, ITEM=5, WHEN=PT EQ 4, BACKCOLOR='GREEN',$



Now it works.
Anyways thanks for replies


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report 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 Styling in SUBFOOT

Copyright © 1996-2020 Information Builders