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.
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 -RUNThis message has been edited. Last edited by: Kerry,
WebFOCUS 8.104 Windows, All Outputs
Posts: 28 | Location: Holland, MI USA | Registered: September 30, 2010
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, 2010
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 ). 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.