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 OVER in a pdf

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Using OVER in a pdf
 Login/Join
 
Platinum Member
posted
This client is running WebFOCUS 7.6.10 on an i-Series / AS400 server. The database is DB2. The report requirement is to list pairs of columns from one table OVER the next pair. The problem is that the second field in each pair is format A800. I.E.

TEXT1 COMMENT1
TEXT2 COMMENT2
TEXT3 COMMENT3

For some reason that I cannot figure out, the WRAP command works fine for the first pair of fields, but not for any that follow the OVER statement. Here is an example using CAR:

[code}

DEFINE FILE CAR
COMMENT1/A800=WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY | WARRANTY;
COMMENT2/A800=CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD | CAR.EQUIP.STANDARD;
END
TABLE FILE CAR
PRINT
'CAR.ORIGIN.COUNTRY' AS ' '
'CAR.WARANT.COMMENT1' AS ' ' OVER
'CAR.COMP.CAR' AS ' '
'CAR.WARANT.COMMENT1' AS ' '
HEADING
""
FOOTING
""
WHERE CAR.CARREC.MODEL EQ 'TR7';
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
GRID=ON,
FONT='ARIAL',
SIZE=9,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
TYPE=REPORT,
COLUMN=N1,
WRAP=1.000000,
$
TYPE=REPORT,
COLUMN=N2,
WRAP=7.000000,
$
TYPE=REPORT,
COLUMN=N3,
WRAP=1.000000,
$
TYPE=REPORT,
COLUMN=N4,
WRAP=7.000000,
$
ENDSTYLE
END
[/code]

Any suggestions would be greatly appreciated.

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


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
 
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005Report This Post
Expert
posted Hide Post
This looks suspiciously like a bug!

Try as I might, I couldn't get two long fields to WRAP in the PDF report.

DEFINE FILE CAR
COMMENT1/A850 =
  '1 ' |
  (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) ||
  (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) ||
  (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) ||
  (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL);
COMMENT2/A850 =
  '2 ' |
  (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) ||
  (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) ||
  (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) ||
  (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL) || (' ' | MODEL);
BLANK1/A1 = '';
END

TABLE FILE CAR
PRINT
COUNTRY   AS ' '
COMMENT1  AS ' '
OVER
CAR       AS ' '
COMMENT2  AS ' '

BY COUNTRY NOPRINT
BY CAR     NOPRINT
BY MODEL   NOPRINT

HEADING
"BOWLEY1"
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, ORIENTATION=LANDSCAPE, $
TYPE=REPORT, FONT='ARIAL', SIZE=7, $
TYPE=REPORT, COLUMN=COUNTRY(2) , WRAP=0.5, COLOR=BLUE, $
TYPE=REPORT, COLUMN=COMMENT1   , WRAP=6.0, COLOR=ORANGE, $
TYPE=REPORT, COLUMN=CAR(2)     , WRAP=0.5, COLOR=RED, $
TYPE=REPORT, COLUMN=COMMENT2   , WRAP=6.0, COLOR=GREEN, $
ENDSTYLE
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
This must be related to OVER and WRAP.

I would suggest making the three sets of data into rows, and it should then work.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Use SQUEEZE:

  
TYPE=REPORT,
COLUMN=N1,
SQUEEZE=0.65,
$
TYPE=REPORT,
COLUMN=N2,
SQUEEZE=8.8,
$
TYPE=REPORT,
COLUMN=N3,
SQUEEZE=0.65,
$
TYPE=REPORT,
COLUMN=N4,
SQUEEZE=8.8,
$


If that doesn't work, WRAP the text yourself with PARAG function...

hth


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report 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 OVER in a pdf

Copyright © 1996-2020 Information Builders