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] Removing Trailing Spaces

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Removing Trailing Spaces
 Login/Join
 
Member
posted
I've searched the forum, and I know this has been answered before, but the answers don't make any sense to me (I'm still very know at WebFocus. Sorry Frowner )

I have an alpha field (A38). When it prints out in PDF or HTML, the column that contains that field is, of course, 38 characters wide, even if none of the records in that column are close to being that wide (on the PDF, it's pushing the report to two pages).

So, I'm trying to truncate the field to the width of the longest value in that column. Here's my latest attempt:

DGNNAME/A38=TRIM('T',DESIGNER_NM,38,' ',1,DGNNAME); 


But, since DGNNAME is 38 characters long, that's not helping me. How can I fix the report to make the column only as wide as it absolutely needs to be?

We're using WebFocus 5.1. Thanks for any help!

This message has been edited. Last edited by: Kerry,
 
Posts: 19 | Registered: October 24, 2006Report This Post
Expert
posted Hide Post
This shouldn't be happening for HTML. Any HTML page displays multiple contiguous blanks as one. In WebFOCUS trailing spaces are never carried over to the report. In PDF, simply add the following to your stylesheet, the column will be as wide as the non-blank portion:

ON TABLE SET STYLESHEET *
TYPE = REPORT, SQUEEZE=ON, $
ENDSTYLE

If you're already using a TYPE=REPORT stlyesheet clause, just add the SQUEEZE=ON tag to it.


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
Master
posted Hide Post
try TRIMV function

DGNNAME/A38V=TRIMV('T',DESIGNER_NM,38,' ',1,DGNNAME);


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Member
posted Hide Post
thanks! That did the trick (squeeze = on).
 
Posts: 19 | Registered: October 24, 2006Report This Post
Member
posted Hide Post
quote:
DGNNAME/A38V=TRIMV('T',DESIGNER_NM,38,' ',1,DGNNAME);


This seems to be working for HTML but not PDF.
Is there a command to get rid of space in the PDF document.


7.6.2
 
Posts: 20 | Location: 7.6.2 | Registered: November 04, 2008Report This Post
Expert
posted Hide Post
How can you tell there are spaces in the PDF report column? Have you tried using SQUEEZE=ON?


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
  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] Removing Trailing Spaces

Copyright © 1996-2020 Information Builders