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     [CLOSED] Using Squeeze with TYPE=TITLE, PDF & OVER

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Using Squeeze with TYPE=TITLE, PDF & OVER
 Login/Join
 
Member
posted
I looked for an answer on FocalPoint but I couldn't find one so I'm going to post my question.

In the following code, I'm wondering why the titles are affected by the SQUEEZE=3 in the TYPE= line when I output to HTML but it is ignored when I output to PDF. If you run the same code with the 'ON TABLE PCHOLD FORMAT PDF' commented out and then uncommented, you will see that the titles are 3" in HTML but only as wide as the longest title in PDF. Is there any way to control the width of the title columns in a PDF when using OVER? Does anyone have a work-around?

Thanks!

TABLE FILE GGSALES
SUM DOLLARS AS 'Dollar Amount' OVER
UNITS AS ' No. of Units'
ACROSS REGION
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE SET STYLE *
SQUEEZE=ON,$
TYPE=TITLE,COLUMN=N1,SQUEEZE=3,STYLE=BOLD,$
ENDSTYLE

END
-RUN

This message has been edited. Last edited by: Kerry,


WebFOCUS 8.104
Windows, All Outputs
 
Posts: 28 | Location: Holland, MI USA | Registered: September 30, 2010Report This Post
Expert
posted Hide Post
Creating Reports With WebFOCUS Language > Laying Out the Report Page > Arranging Columns on a Page

Documentation says:

[TYPE=REPORT,] COLUMN=identifier, SQUEEZE={ON|OFF|width}, $


quote:
TYPE=REPORT - Applies the column width to the entire report. Not required, as it is the default.

SQUEEZE will not work with TYPE=TITLE.

quote:
Note: SQUEEZE is not supported for columns created with the OVER phrase.

SQUEEZE will not work with OVER.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Francis,

Thanks for your response. I guess my question now is why does SQUEEZE work with OVER when the output is HTML but not PDF? In my code, if you comment out the 'ON TABLE PCHOLD' line and run the report, the titles react to the 'SQUEEZE=3' command even though there is a OVER. It's when the output is PDF that it ignores it. Strange!

Is there any way to control the width of the title column when output is PDF?

Thanks,

Keith


WebFOCUS 8.104
Windows, All Outputs
 
Posts: 28 | Location: Holland, MI USA | Registered: September 30, 2010Report This Post
Gold member
posted Hide Post
I had a similar problem to this on a project. I was not using OVER but ACROSS.

I couldn't wrap/squeeze the column titles from the ACROSS statement. The columns wrapping worked in HTML, as HTML does its own thing.

Just because it may work in one format (HTML), doesn't mean the same thing will work in another format (PDF).


WF 7.6.10, Windows, PDF, Excel
 
Posts: 75 | Location: Dallas, TX | Registered: February 12, 2004Report This Post
Virtuoso
posted Hide Post
quote:
Just because it may work in one format (HTML), doesn't mean the same thing will work in another format (PDF).

As CSS is so rich when it comes to styling it probably gives WebFOCUS more flexibility to implement those particular style definitions in HTML. Although PDF support has improved significantly since I guess WF 7.6.11 (we can now use HEADALIGN=BODY and there's support for pixel-perfect reports) it is still a bit limited when compared to what can be achieved with HTML.

Personally, I try not to use OVER or ACROSS (and definitely never together Smiler ). I know it is ridiculous having to implement many things in code when a simple keyword would do it for you but as styling usually causes me trouble in cases like those, I end up using McGyver to implement what OVER would give me and data buckets to replace ACROSS.

As a bonus, I gain slightly more flexibility when dealing with FOOTING/SUBFOOT and definitely much more control in styling ... but all of that at the price of more complex logic. It is a tradeoff but it has worked for me.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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     [CLOSED] Using Squeeze with TYPE=TITLE, PDF & OVER

Copyright © 1996-2020 Information Builders