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.
This is really annoying because the styling parser in my head can work this out but WF cannot.
Here's a simplified example of my real world report:
I need to - highlight certain rows - wrap certain columns
Somehow these two requirements are colliding with other WF styling. In the example below, the addition of TYPE=DATA, $ causes the SALES column to not have the background colour. The TYPE=DATA, $, or TYPE=DATA, COLOR=NAVY, $ simulates the other WF styling in the report, this causes the problem and I see no relation with this and TYPE=DATA, BACKCOLOR=RED, WHEN= COUNTRY EQ 'FRANCE', $
TABLE FILE CAR
SUM
SALES AS 'WIDE COLUMN TITLE'
BY COUNTRY
ON TABLE SET STYLE *
UNITS=PTS,
$
TYPE=REPORT, COLUMN=SALES, WRAP=50, $
TYPE=DATA,
-*COLOR=NAVY,
$
TYPE=DATA, BACKCOLOR=RED, WHEN= COUNTRY EQ 'FRANCE', $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
This message has been edited. Last edited by: Francis Mariani,
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
How about adding the opposite condition as well? Not sure if this will work in your real program.
TABLE FILE CAR
SUM
SALES AS 'WIDE COLUMN TITLE'
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=PTS,$
TYPE=REPORT,COLUMN=SALES,WRAP=50,$
TYPE=DATA,COLOR=NAVY,BACKCOLOR=NONE,WHEN=COUNTRY NE 'FRANCE',$
TYPE=DATA,COLOR=NAVY,BACKCOLOR=RED,WHEN=COUNTRY EQ 'FRANCE',$
ENDSTYLE
END
Hi, Though I could not see the image attached(my computer problem) but going through the thread it seems the requirement is to put conditional backcolor in data column. Following code change might be helpful,please review once. TABLE FILE CAR SUM SALES AS 'WIDE COLUMN TITLE'
I think the source of the problem is that the report-wide style on the SALES column already defines a style for cells in that column. That style has been set, so any subsequent styling for matching cells is ignored.
What helps is to also specify conditional styling for those specific cells, as conditional styles override default styles:
TABLE FILE CAR
SUM
SALES AS 'WIDE COLUMN TITLE'
BY COUNTRY
ON TABLE SET STYLE *
UNITS=PTS,
$
TYPE=REPORT, COLUMN=SALES, WRAP=50,$
TYPE=DATA,
-*COLOR=NAVY,
$
TYPE=DATA, BACKCOLOR=RED, WHEN=COUNTRY EQ 'FRANCE', $
TYPE=DATA, COLUMN=SALES, BACKCOLOR=RED, WHEN=COUNTRY EQ 'FRANCE', $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END
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 :
Originally posted by Francis Mariani: "the report-wide style on the SALES column already defines a style for cells in that column" - I expect WF styling to behave like CSS.
Yeah, that's what I expected initially as well. I've learned the hard way that it does not.
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 :
Frankie, it works fine in 768 just as you wrote it. i tried changing TYPE=REPORT, to TYPE=TITLE, just for grins. made no dif. both ways worked fine, regardless of output type. so its 77 wierdness, i guess.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I get the impression that in past releases some things worked unintentionally.
With 7.7 IBI has done a lot of code tightening (sometimes too much IMHO, like not allowing an END statement at the end of a single-line JOIN statement) and such unintended "features" started breaking.
That wouldn't really be a problem if IBI were aware of such usage and implemented a fix, but perhaps we have been a bit more creative in our usage than they expected :P
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 :