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 am new to WebFocus 8 and on the first day have run into this challenge. Will greatly appreciate any help.
Problem: I am supposed to create multiple graphs and reports which have data shown for values of a category (column). What client wants is in all reports, data/bars of the charts to have same color for the values of that particular column. For instance Separate Reports/Charts showing various data of all continents should have same colors for same continent (Green for Africa in all reports).
How do I do this?
Thanks in advance!This message has been edited. Last edited by: <Emily McAllister>,
WebFocus 8.1 Service Pack 0.5 Build Version branch8105 Build/GEN Number 119
OS/Platform: Apache Tomcat/8.0.21
Posts: 46 | Location: Baltimore | Registered: October 27, 2016
Hi Sandeep and welcome to the WF forum! There are probably many ways to do this. Here are 2:
1. Providing colors for each field separately
-* File sandeep01.fex
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
SALES
BY LOWEST COUNTRY
BY LOWEST CAR
BY LOWEST BODYTYPE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
TYPE=DATA,
COLUMN=N4,
COLOR='RED',
WHEN=N1 EQ 'ENGLAND',
$
TYPE=DATA,
COLUMN=N5,
COLOR='RED',
WHEN=N1 EQ 'ENGLAND',
$
TYPE=DATA,
COLUMN=N6,
COLOR='RED',
WHEN=N1 EQ 'ENGLAND',
$
TYPE=DATA,
COLUMN=N4,
COLOR='BLUE',
WHEN=N1 EQ 'FRANCE',
$
TYPE=DATA,
COLUMN=N5,
COLOR='BLUE',
WHEN=N1 EQ 'FRANCE',
$
TYPE=DATA,
COLUMN=N6,
COLOR='BLUE',
WHEN=N1 EQ 'FRANCE',
$
TYPE=DATA,
COLUMN=N4,
COLOR='GREEN',
WHEN=N1 EQ 'ITALY',
$
TYPE=DATA,
COLUMN=N5,
COLOR='GREEN',
WHEN=N1 EQ 'ITALY',
$
TYPE=DATA,
COLUMN=N6,
COLOR='GREEN',
WHEN=N1 EQ 'ITALY',
$
TYPE=DATA,
COLUMN=N4,
COLOR='YELLOW',
WHEN=N1 EQ 'JAPAN',
$
TYPE=DATA,
COLUMN=N5,
COLOR='YELLOW',
WHEN=N1 EQ 'JAPAN',
$
TYPE=DATA,
COLUMN=N6,
COLOR='YELLOW',
WHEN=N1 EQ 'JAPAN',
$
ENDSTYLE
END
You can probably arrive to this using DevStudio or AppStudio.
2. Coding a procedure with some Dialog Manager commands:
-* File sandeep02.fex
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
SALES
BY LOWEST COUNTRY
BY LOWEST CAR
BY LOWEST BODYTYPE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
-REPEAT #COUNTRIES FOR &C FROM 1 TO 5;
-SET &COUNTRY=DECODE &C(1 ENGLAND 2 FRANCE 3 ITALY 4 JAPAN 5 'W GERMANY' ELSE OTHER);
-SET &COLOR=DECODE &C(1 RED 2 BLUE 3 GREEN 4 YELLOW 5 BLACK ELSE GREY);
-REPEAT #COLUMNS FOR &L FROM 4 TO 6;
TYPE=DATA,
COLUMN=N&L,
COLOR='&COLOR',
WHEN=N1 EQ '&COUNTRY',
$
-#COLUMNS
-#COUNTRIES
ENDSTYLE
END
Try both and see what suits you.
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
Thank you Daniel for the quick response! I will surely try. Is there a way to make that happen using Style sheets so that I don't have to change anything in the reports. My client indicated towards that. But I figured I have to find that out.
Do you have any suggestions?
Thank you very much!
WebFocus 8.1 Service Pack 0.5 Build Version branch8105 Build/GEN Number 119
OS/Platform: Apache Tomcat/8.0.21
Posts: 46 | Location: Baltimore | Registered: October 27, 2016
Sandeep, What is your development environment? AppStudio? DevStudio? Editor? You can probably use the GUI for each report separately. But then if and when there are changes you will have to implement them in each report. If you use the editor then with Dialog Manager you can probably parametrize your procedure. If you need more help, we can do some "hands-on" with TeamViewer.
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
You could put that styling information in a .STY file and, in your TABLE requests, use
ON TABLE SET STYLE *
INCLUDE=asdf.STY,
$
-* Report-specific styles
ENDSTYLE
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 :