Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] Field wraps in single report but not when included in compound report
Go
New
Search
Notify
Tools
Reply
  
[CASE-OPENED] Field wraps in single report but not when included in compound report
 Login/Join
 
Silver Member
posted
Until now I thought that a compound report simply rendered its component reports individually and appended the result to a larger document.

I am using WRAP=2 in a report's style section to wrap long text and it's working fine. However, when this report is included in a compound report the same text is not wrapped. Because the text doesn't wrap I get columns overlapping each other.

The relevant line in my compound report looks like this:
COMPONENT='report7', TEXT='report7', TOC-LEVEL=2, POSITION=(-0.001 +0.062), WRAP=ON, DIMENSION=(* *), OVERFLOW-POSITION=(0.520 1.704), RELATIVE-TO='report6', RELATIVE-POINT=BOTTOM-LEFT, POSITION-POINT=TOP-LEFT, METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 7.479in; HEIGHT: 1.5in; TOP: 8.833in; LEFT: 0.52in', $


Single report:


When in compound report:

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


WebFocus 7.7
Windows Server 2008 R2
HTML Reporting
 
Posts: 32 | Registered: September 19, 2011Reply With QuoteReport This Post
Expert
posted Hide Post
Does each "report" have it's own style sheet? That is, do they share, or not share, a common style sheet? Are your column references numberic, like N# or C#, or are the using the absolute field names (that's my preference)?
 
Posts: 3004 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Silver Member
posted Hide Post
Doug, thanks for your interest

All of the component reports share a common stylesheet, but the wrapping parameters are only relevant in one, so WRAP is included in this report's fex only.

ON TABLE SET STYLE *
     INCLUDE = CMN_rpt,
$
TYPE=DATA,
	COLUMN=POLICY,
	WRAP=2,
$
ENDSTYLE


As shown in my first post the compound report includes the individual report with DIMENSION(* *). I changed this to real numbers, thinking that perhaps the individual report didn't know how wide it was, and that's why WRAP wasn't being applied. This did make a difference - the first column's text was visible over a wider area - but it still didn't wrap and the fourth column still overlapped the first.


WebFocus 7.7
Windows Server 2008 R2
HTML Reporting
 
Posts: 32 | Registered: September 19, 2011Reply With QuoteReport This Post
Expert
posted Hide Post
Tom,

What do you have in CMN_rpt.sty?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5604 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Silver Member
posted Hide Post
Tony,

I've pasted the contents below. However I don't understand how this would be relevant - the problem report has the same styles applied when rendered individually and when in the compound report.

TYPE=report,
    font='VERDANA',
    size=10,
    squeeze=on,
    grid=off,
    COLOR='BLACK',
$
TYPE=TITLE,
     COLOR='WHITE',
     STYLE=-UNDERLINE+BOLD,
	 BACKCOLOR=RGB(97 117 178),
$
TYPE=DATA,
     SIZE=8,
     backcolor=(rgb(255 255 255) rgb(235 235 240)),
$
type=pagenum,
    style=italic,
    size=6,
    justify=right,
$
type=tabheading,
    style=bold+italic,
    size=14,
    justify=center,
$
TYPE=TABFOOTING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     STYLE=BOLD,
	 justify=center,
$
type=tabfooting,
    size=8,
    justify=center,
    border-top=heavy,
    border-top-color=rgb(97 117 178),
$
type=heading,
    style=bold,
    size=12,
    justify=center,
$
type=footing,
    size=8,
    justify=center,
$
type=acrosstitle,
    border-top=light,
    border-bottom=heavy,
    border-top-color=rgb(52 55 58),
    border-bottom-color=rgb(52 55 58),
    size=9,
    style=-underline+bold,
$
type=acrossvalue,
    backcolor=rgb(218 225 232),
    style=bold,
$
type=subhead,
    size=10,
    style=bold,border-top=heavy,
    border-bottom=light,
    border-top-color=rgb(52 55 58),
    border-bottom-color=rgb(52 55 58),
$
type=subfoot,
    size=10,
    style=bold,
    border-top=light,
    border-bottom=medium,
    border-top-color=rgb(52 55 58),
    border-bottom-color=rgb(52 55 58),
$
type=subtotal,
    backcolor=RGB(200 200 200),
    style=bold,
    border-top=light,
    border-top-color=rgb(66 70 73),
$
type=grandtotal,
    backcolor=rgb(66 70 73),
    color=rgb(255 255 255),
    style=bold,
    border-top=light,
    border-bottom=heavy,
    border-top-color=rgb(66 70 73),
    border-top-style=solid,
    border-bottom-style=double,
$


WebFocus 7.7
Windows Server 2008 R2
HTML Reporting
 
Posts: 32 | Registered: September 19, 2011Reply With QuoteReport This Post
Expert
posted Hide Post
Tom,

Shot in the dark, just in case!

In the case of a compound report, the syntax that you have implies a portrait layout, I wanted to see if you had conflicting styling in your style sheet (you don't).

The width of your output is restricted to 7.479in but what is the width of your report outside of the compound? You might need to play with left gap, right gap and margin in your style sheet to get a decent layout.

I have had situations where I have had to play with numerous style values to gain a "clean" and flowing multi page document. Time consuming but worth the end result!

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5604 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Silver Member
posted Hide Post
Tony, thanks for the suggestion, I'll give it a try shortly. I have also opened a support case with IBI so I'll report back here if something useful comes out of it.


WebFocus 7.7
Windows Server 2008 R2
HTML Reporting
 
Posts: 32 | Registered: September 19, 2011Reply With QuoteReport This Post
Member
posted Hide Post
Try using
TYPE=REPORT, COLUMN=fielname, WRAP=2,$
instead of TYPE=DATA


8201
 
Posts: 11 | Registered: April 20, 2018Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] Field wraps in single report but not when included in compound report

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.