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.
I have a report with ACROSS fields. I need the data in each across value to be colored. Means for example, all data under the ACROSS value ‘say 2’ has to be colored in RED. All data under the ACROSS value ‘3’ has to colored as ‘BLUE’ etc.
See the below code:
TABLE FILE CAR SUM RETAIL_COST BY COUNTRY ACROSS SEATS ACROSS CAR ON TABLE SET STYLE * TYPE=ACROSSVALUE,COLOR=RED, $ TYPE=ACROSS,COLUMN=C1,COLOR=GREEN, $ TYPE=DATA,ACROSSCOLUMN=RETAIL_COST,COLOR=BLUE,WHEN = SEATS EQ 2, $ END
Thanks for your help!
Regards, Cyril Joy.
WF Production 8008 on Linux.
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004
DEFINE FILE CAR
FLAG/D4 = SEATS;
END
TABLE FILE CAR
SUM
SALES AS ''
MIN.FLAG NOPRINT
BY COUNTRY
ACROSS SEATS
ACROSS CAR
ON TABLE SET STYLE *
TYPE=DATA, ACROSSCOLUMN=SALES, COLOR='RED', WHEN=MIN.FLAG EQ 2, $
TYPE=DATA, ACROSSCOLUMN=SALES, COLOR='BLUE', WHEN=MIN.FLAG EQ 4, $
TYPE=DATA, ACROSSCOLUMN=SALES, COLOR='GREEN', WHEN=MIN.FLAG EQ 5, $
ENDSTYLE
END
Hopefully someone else has a better idea...
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
But why the below code is coloring the columns which has only data. I need the entire portion of the report to be colored? (I use BACKCOLOR instead of COLOR)
DEFINE FILE CAR FLAG/D4 = SEATS; END
TABLE FILE CAR SUM SALES AS '' MIN.FLAG NOPRINT BY COUNTRY
Unfortunately this is because data rows do not exist. For example, England-Alfa Romeo does not exist, therefore there is no SEAT or FLAG value for England-Alfa Romeo.
It looks like this solution will not work. I don't have any other ideas...
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
What do you mean by "entire portion of the report to be colored"? If you're only interested in coloring the data, then if no data exists, as Francis mentioned, then you would not expect it to be colored?
Prod - WF 7.6.4 Unix/Solaris - Self-Service, BI Dashboard, MRE Dev - WF 7.6.4 Unix/Solaris - Self-Service, BI Dashboard, MRE Databases: Oracle 10g, SQL Server 2000, DB2.
purpose of across is to dynamically display columns as they exists. If only one sort value exists, then there is no column 2 to change colors on. You could use column notation as follows to get what you need. The "ACROSS COUNTRY COLUMNS value and value " I used simply to control the order of the columns.
TABLE FILE CAR
PRINT
CAR
ACROSS COUNTRY
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
COLUMN=N1,
BACKCOLOR='RED',
$
TYPE=DATA,
COLUMN=C3,
BACKCOLOR='BLUE',
$
TYPE=DATA,
COLUMN=C5,
BACKCOLOR='YELLOW',
$
ENDSTYLE
END
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, 2007
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, 2007
-* File cyril1.fex
TABLE FILE CAR
SUM
RETAIL_COST
BY COUNTRY
ACROSS SEATS
ACROSS CAR
ON TABLE NOTOTAL
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
-REPEAT #YELLOW FOR &I FROM 2 TO 64 STEP 2;
TYPE=DATA,
COLUMN=N&I,
BACKCOLOR='YELLOW',
$
TYPE=TITLE,
COLUMN=N&I,
BACKCOLOR='YELLOW',
$
-#YELLOW
ENDSTYLE
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006