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]WRAP and OVER together don't work properly

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]WRAP and OVER together don't work properly
 Login/Join
 
Member
posted
I'm having problems with WRAP on a OVER column. My source data is large text with multiple lines but my output shows one line for this column that goes all the way to the right of page and breaks there. Output format is PDF.

I also tried SQUEEZE which actually truncates the data (puts a ! at the end).
I have seen a number of posts on the forum, the closest was by Francis MAriani..
Post
..where the direction was to use MORE. that didn't work out for me.
Any ideas how to do this?
Thanks.

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


WebFOCUS 767, Windows XP
Excel, HTML, PDF
 
Posts: 15 | Registered: March 11, 2009Report This Post
Member
posted Hide Post
Can you show us the code you are using?


7.7.02 on Windows
 
Posts: 14 | Location: Minneapolis | Registered: August 24, 2004Report This Post
Expert
posted Hide Post
This code illustrates the problem:

TABLE FILE CAR
SUM
COMPUTE DUMMY1/A400 =
       WARRANTY  || (' ' | STANDARD) ||
(' ' | WARRANTY) || (' ' | STANDARD) ||
(' ' | WARRANTY) || (' ' | STANDARD); AS ''

OVER

COMPUTE DUMMY2/A400 =
       STANDARD  || (' ' | WARRANTY) ||
(' ' | STANDARD) || (' ' | WARRANTY) ||
(' ' | STANDARD) || (' ' | WARRANTY); AS ''

BY COUNTRY

ON TABLE SET STYLE *
TYPE=REPORT, PAGESIZE=LETTER, ORIENTATION=LANDSCAPE, FONT='Arial', SIZE=9, BOTTOMGAP=.05, $$
TYPE=REPORT, COLUMN=DUMMY1, WRAP=5, COLOR=BLUE, $
TYPE=REPORT, COLUMN=DUMMY2, WRAP=5, COLOR=GREEN, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END


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
Expert
posted Hide Post
Methinks this is a bug, and bad news, they've papered-over the bug with a statement about OVER not supported with WRAP:

Creating Reports With WebFOCUS Language > Formatting Report Data > Positioning Data in a Report:

quote:
Reference: Usage Notes for WRAP and SQUEEZE
Most Web browsers—by default—determine the width of a report column using an internal algorithm. If a data value exceeds the column's width, the browser wraps that data onto the next line of the column. If you want to prevent these line breaks, you can override this browser behavior by using the WRAP StyleSheet attribute.
Specifying a width is supported in HTML reports that generate an internal Cascading Style Sheet, as well as in PDF and PostScript reports.
The WRAP and SQUEEZE attributes are incompatible. You should not apply both of them to the same report component.
The OVER attribute is not supported with WRAP.
The WRAP attribute is for alphanumeric columns, and is not supported for text (TX) columns.


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
Expert
posted Hide Post
The work-around using the MORE command:

SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA

TABLE FILE CAR
SUM
COMPUTE DUMMY1/A400 =
       WARRANTY  || (' ' | STANDARD) ||
(' ' | WARRANTY) || (' ' | STANDARD) ||
(' ' | WARRANTY) || (' ' | STANDARD);
BY COUNTRY
ON TABLE HOLD AS H001
END

TABLE FILE CAR
SUM
COMPUTE DUMMY1/A400 =
       STANDARD  || (' ' | WARRANTY) ||
(' ' | STANDARD) || (' ' | WARRANTY) ||
(' ' | STANDARD) || (' ' | WARRANTY); AS ''
BY COUNTRY
ON TABLE HOLD AS H002
END

TABLE FILE H001
PRINT DUMMY1
BY COUNTRY
ON TABLE HOLD AS H003
MORE
FILE H002
END

TABLE FILE H003
PRINT
DUMMY1
BY COUNTRY

ON TABLE SET STYLE *
TYPE=REPORT, PAGESIZE=LETTER, ORIENTATION=LANDSCAPE, FONT='Arial', SIZE=9, BOTTOMGAP=.05, $$
TYPE=REPORT, COLUMN=DUMMY1, WRAP=5, COLOR=BLUE, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END

This puts the two columns that need to be OVER each other in two separate HOLD files that are then merged together with the MORE statement. They end up being one column, two rows instead of two columns OVER each other.

I hope this helps.


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
Thanks Much Francis!
This solution works for me. I do have a few fields that are displayed in the normal way, (column after column horizontally) and then the 2 OVER columns..
But, I can use your work-around to try and achieve that.
Thanks!


WebFOCUS 767, Windows XP
Excel, HTML, PDF
 
Posts: 15 | Registered: March 11, 2009Report 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]WRAP and OVER together don't work properly

Copyright © 1996-2020 Information Builders