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.
Originally posted by Francis Mariani: You need the COUNTRY NOPRINT so that it's available for the WHEN clause.
Actually, the WHEN clauses work fine without the extra COUNTRY column; it's available as an ACROSS column already after all.
Funnily enough, there is a difference between both forms; with the NOPRINT column the SALES column titles get printed, without it they don't.
Anyway, for whatever reason you need to add that column (WHEN recognising the field or getting ACROSS column titles), there's no rime or reason to it.
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 :
Or, IF you know what columns you want to identify AND you do not know the values THEN you can identify the columns using numeric subscripts ELSE Whatever; (imho: I like this feature )
TABLE FILE CAR
SUM COUNTRY NOPRINT SALES ACROSS COUNTRY
ON GRAPH SET STYLE *
TYPE=REPORT, COLUMN=SALES(1), COLOR=RGB(255 000 255), $
TYPE=REPORT, COLUMN=SALES(2), COLOR=RGB(255 000 000), $
TYPE=REPORT, COLUMN=SALES(3), COLOR=RGB(000 255 000), $
TYPE=REPORT, COLUMN=SALES(4), COLOR=RGB(000 000 255), $
TYPE=REPORT, COLUMN=SALES(5), COLOR=RGB(000 255 255), $
TYPE=REPORT, COLUMN=SALES(6), COLOR=RGB(255 255 000), $
ENDSTYLE
END
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I'm intrigued by Doug's code: (I changed the ON GRAPH to ON TABLE of course)
TABLE FILE CAR
SUM COUNTRY NOPRINT SALES ACROSS COUNTRY
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=SALES(1), COLOR=RGB(255 000 255), $
TYPE=REPORT, COLUMN=SALES(2), COLOR=RGB(255 000 000), $
TYPE=REPORT, COLUMN=SALES(3), COLOR=RGB(000 255 000), $
TYPE=REPORT, COLUMN=SALES(4), COLOR=RGB(000 000 255), $
TYPE=REPORT, COLUMN=SALES(5), COLOR=RGB(000 255 255), $
TYPE=REPORT, COLUMN=SALES(6), COLOR=RGB(255 255 000), $
ENDSTYLE
END
The country shows up above the word SALES wnen COUNTRY NOPRINT is selected - both in the appropriate colour.
Removing the NOPRINT gives a different result. The word COUNTRY shows up in black to the left of SALES if the NOPRINT is removed. SALES is still the correct colour.
If I remove COUNTRY NOPRINT altogether then the word SALES no longer appears in the heading, but the country names are in colour .....
If I remove COUNTRY NOPRINT altogether then the word SALES no longer appears in the heading, but the country names are in colour .....
SALES appears in the heading because COUNTRY NOPRINT adds a field to your request and when there is more than 1 field in a SUM ... ACROSS the titles are shown. The COUNTRY names are in color because you code TYPE=REPORT. See the following:
TABLE FILE CAR
SUM SALES ACROSS COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=SALES(1), COLOR=RGB(255 000 255), $
TYPE=DATA, COLUMN=SALES(2), COLOR=RGB(255 000 000), $
TYPE=DATA, COLUMN=SALES(3), COLOR=RGB(000 255 000), $
TYPE=DATA, COLUMN=SALES(4), COLOR=RGB(000 000 255), $
TYPE=DATA, COLUMN=SALES(5), COLOR=RGB(000 255 255), $
TYPE=DATA, COLUMN=SALES(6), COLOR=RGB(255 255 000), $
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
1) You need to adjust the subscripts when you remove the "COUNTRY NOPRINT" as that field is counted even though it is NOPRINTed (it's still in the matrix). 2) So, how'd I miss that "ON GRAPH" in my TABLE FILE request (or did I leave it there to see if someone would catch it?)? Either way, it a good learning experience...
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005