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.
TABLE FILE CAR
SUM
SALES
ACROSS SEATS
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=DATA, ACROSSCOLUMN=SALES, SQUEEZE=3.0, COLOR=GREEN, $
TYPE=DATA, COLUMN=COUNTRY, SQUEEZE=4.0, COLOR=BLUE, $
ENDSTYLE
END
The Squeeze tag doesn't work for either column, it has no effect on the width of the column in Excel. The COLOR tag works, which means my stylesheet is targeting the correct columns.
I think this is not working because it is an across column, but there is no documentation supporting my theory.
Identifies a particular column. If COLUMN is not included in the declaration, the column width specified with SQUEEZE is applied to the entire report.
n
Represents a specific numeric value that the column width can be set to. The value represents the measure specified with the UNITS parameter (the default is inches).
This is the most commonly used SQUEEZE setting in an Excel 2000 report.
Note:
ON/OFF settings for SQUEEZE are not meaningful for EXL2K.
SQUEEZE turns off data wrapping. If a data value is wider than the specified width of the column, it is hidden from view. You can adjust column width in Excel after the spreadsheet has been generated.
Interestingly, in another section of the documentation:
quote:
SQUEEZE can be used as either a SET parameter or a StyleSheet attribute. To control wrapping using SQUEEZE, use the following syntax within a StyleSheet.
TYPE =type, SQUEEZE=value, $
where:
type
Is the report component you wish to affect, such as REPORT, HEADING, or TITLE.
value
Is one of the following:
ON turns on data wrapping. This is the default for HTML output.
OFF turns off data wrapping. This is the default for PDF and PostScript.
n represents a specific numeric value to which the column width can be set (valid only in PDF and PostScript) The value represents the measure specified with the UNITS parameter.
"valid only in PDF and PostScript" - confusing, non?
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
The way you coded the request does not work in WF 7.1.3 either.
Reread the Documentation and it indicates TYPE=REPORT statements work for Excel.
The following DOES work in WF 7.1.3
TABLE FILE CAR SUM SALES ACROSS SEATS BY COUNTRY ON TABLE PCHOLD FORMAT EXL2K ON TABLE SET PAGE NOLEAD ON TABLE SET STYLESHEET * TYPE=REPORT, COLUMN=P2, SQUEEZE=3.00,$ TYPE=REPORT, COLUMN=P3, SQUEEZE=3.00,$ TYPE=REPORT, COLUMN=P4, SQUEEZE=3.00,$ TYPE=DATA, ACROSSCOLUMN=SALES, COLOR=GREEN, $ TYPE=DATA, COLUMN=COUNTRY, COLOR=BLUE, $ ENDSTYLE END
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Mickey, thank you! I did not read the doc correctly!
this also works:
TABLE FILE CAR
SUM
SALES
ACROSS SEATS COLUMNS 1 AND 2 AND 3 AND 4 AND 5 AND 6
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, ACROSSCOLUMN=SALES, SQUEEZE=4.00,$
ENDSTYLE
END
Thanks very much.
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