Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Column width ACROSSCOLUMNS and BY-COLUMNS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Column width ACROSSCOLUMNS and BY-COLUMNS
 Login/Join
 
Member
posted
Hello,

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, 2008Report This Post
Virtuoso
posted Hide Post
 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,$
 

Will this do it for you?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Gamp,

thank you for your response.

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, 2008Report This Post
Virtuoso
posted Hide Post
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, 2003Report This Post
Member
posted Hide Post
Thanks Mickey,

your answer is not what I expected, but by playing with your settings, I succeeded in what I wanted.


Therefore I consider my problem SOLVED


WebFocus 8.0.3
Windows 7 Prof
Oracle 11.2.0.3
Output PDF and Excel
 
Posts: 19 | Location: Netherlands | Registered: April 21, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Column width ACROSSCOLUMNS and BY-COLUMNS

Copyright © 1996-2020 Information Builders