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.
The following code is adapted from an earlier post on this subject:
DEFINE FILE CAR C/A1 = EDIT (CAR,'9$$$$$$$$$$$$$$$'); END TABLE FILE CAR SUM CNT.SEATS AS '' BY COUNTRY ACROSS C AS '' WHERE RECORDLIMIT EQ 10 ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=REPORT,GRID=OFF,SQUEEZE=ON,SIZE=7,WRAP=0.20,$ TYPE=ACROSSVALUE,JUSTIFY=RIGHT,WRAP=0.20,$ TYPE=REPORT,ACROSSCOLUMN=C,JUSTIFY=RIGHT,$ ENDSTYLE END
PROBLEM: I would like the width of acrosscolumns to be small, but the width of the by-column to be wide (so the text will fit and not wrapped). In my dataset the number of across-values can be great. I’ve read many posts in your forum, and also the 2 articles op MGRACKIN on HTML and PDF Report Design, but I can't find a solution.
Can someone help..This message has been edited. Last edited by: TonyB,
WebFocus 8.0.3 Windows 7 Prof Oracle 11.2.0.3 Output PDF and Excel
Posts: 19 | Location: Netherlands | Registered: April 21, 2008
Your solution takes care of de width of the BY-COLUMN, but the wrapping of the acrossvalues doesn't work any more. You can see this when you make C larger (from A1 to A5):
DEFINE FILE CAR C/A5 = EDIT (CAR,'99999$$$$$$$$$$$'); END TABLE FILE CAR SUM CNT.SEATS AS '' BY COUNTRY ACROSS C AS '' WHERE RECORDLIMIT EQ 10 ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=REPORT,GRID=OFF,SQUEEZE=ON,SIZE=7,$ TYPE=ACROSSVALUE,JUSTIFY=RIGHT,WRAP=0.20,$ TYPE=DATA, COLUMN=COUNTRY, JUSTIFY=LEFT,WIDTH=4.0,$ TYPE=REPORT,ACROSSCOLUMN=C,JUSTIFY=RIGHT,$ ENDSTYLE END
The justifying also doesn't work anymore.
Tony
WebFocus 8.0.3 Windows 7 Prof Oracle 11.2.0.3 Output PDF and Excel
Posts: 19 | Location: Netherlands | Registered: April 21, 2008
1) The keyword WIDTH should be replaced with the word WRAP. WIDTH is used to control the width of items in HEADINGs, SUBHEADs, FOOTINGs, etc.
2) When controling the width of a column do it via a TYPE=REPORT, WRAP=n.nn, ... statement. Using WRAP=n.nn on a TYPE=DATA statement does not work.
3) WRAP does not work for ACROSSVALUEs.
Here's an adjusted sample of code that I hope helps to explain this.
DEFINE FILE CAR C/A5 = EDIT (CAR,'99999$$$$$$$$$$$'); END TABLE FILE CAR SUM CNT.SEATS AS '' BY COUNTRY ACROSS C AS '' WHERE RECORDLIMIT EQ 10 ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE * TYPE=REPORT,GRID=OFF,SQUEEZE=ON,SIZE=7,$ TYPE=REPORT,WRAP=0.60,$ TYPE=REPORT,COLUMN=COUNTRY,WRAP=1.0,$ TYPE=ACROSSVALUE,JUSTIFY=RIGHT,$ TYPE=DATA,JUSTIFY=RIGHT,$ TYPE=DATA,COLUMN=COUNTRY,JUSTIFY=LEFT,$ ENDSTYLE END
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003