Focal Point
Compound report problems

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7821084732

July 17, 2007, 03:53 PM
Bethany
Compound report problems
Please run this code and note how the borders under the column title and subtotals in the 2nd report are shifted down. If you run the code for just the 2nd report, the borders appears as they do in the first report.

Any idea what's causing this and how to fix this???

DEFINE FILE CAR
UN/A1 = ' ';
G/A1 = ' ';
END

TABLE FILE CAR
COUNT
CAR
BY UN NOPRINT
BY COUNTRY
BY G AS ' ' 
ON UN SUBTOTAL CAR AS 'TOTAL'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='Letter',
	 TOPMARGIN=0.500000,
     BOTTOMMARGIN=0.1000000,
	 LEFTMARGIN=0.50,
	 RIGHTMARGIN=0.50,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     FONT='TIMES NEW ROMAN',
     SIZE=8,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
     RIGHTGAP=0.02,
     LEFTGAP=0.02,
	 BOTTOMGAP=0.05,
$
TYPE=DATA,
     COLUMN=ACCT_UNIT,
	 STYLE=BOLD,
$
TYPE=TITLE,
     BORDER-BOTTOM=LIGHT,
	 STYLE=BOLD,
	 JUSTIFY=CENTER,
$
TYPE=TITLE,
     COLUMN=G(*),
	 BORDER-BOTTOM=OFF,
	 SIZE=5,
$
TYPE=SUBTOTAL,
     BORDER=LIGHT,
	 BORDER-COLOR='WHITE',
$
TYPE=SUBTOTAL,
     BY=1,
	 BORDER=LIGHT,
	 BORDER-COLOR='WHITE',
	 STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BY=1,
	 COLUMN=N4,
	 BORDER-TOP=LIGHT,
	 BORDER-TOP-COLOR='BLACK',
	 BORDER-BOTTOM=HEAVY,
	 BORDER-BOTTOM-COLOR='BLACK',
$

TYPE=REPORT,
     COLUMN=G(*),
	 SQUEEZE=OFF,
$
END

DEFINE FILE CAR
UN/A1 = ' ';
G/A1 = ' ';
END

TABLE FILE CAR
SUM
RETAIL_COST
BY UN NOPRINT
BY COUNTRY
BY G AS ' ' 
ON UN SUBTOTAL RETAIL_COST AS 'TOTAL'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF CLOSE
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='Letter',
	 TOPMARGIN=0.500000,
     BOTTOMMARGIN=0.1000000,
	 LEFTMARGIN=0.50,
	 RIGHTMARGIN=0.50,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     FONT='TIMES NEW ROMAN',
     SIZE=8,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
     RIGHTGAP=0.02,
     LEFTGAP=0.02,
	 BOTTOMGAP=0.05,
$
TYPE=DATA,
     COLUMN=ACCT_UNIT,
	 STYLE=BOLD,
$
TYPE=TITLE,
     BORDER-BOTTOM=LIGHT,
	 STYLE=BOLD,
	 JUSTIFY=CENTER,
$
TYPE=TITLE,
     COLUMN=G(*),
	 BORDER-BOTTOM=OFF,
	 SIZE=5,
$
TYPE=SUBTOTAL,
     BORDER=LIGHT,
	 BORDER-COLOR='WHITE',
$
TYPE=SUBTOTAL,
     BY=1,
	 BORDER=LIGHT,
	 BORDER-COLOR='WHITE',
	 STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BY=1,
	 COLUMN=N4,
	 BORDER-TOP=LIGHT,
	 BORDER-TOP-COLOR='BLACK',
	 BORDER-BOTTOM=HEAVY,
	 BORDER-BOTTOM-COLOR='BLACK',
$

TYPE=REPORT,
     COLUMN=G(*),
	 SQUEEZE=OFF,
$
END


Thanks for looking...
Bethany

WebFOCUS 7.1.3
DevStudio: 7.1.4


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
July 17, 2007, 04:20 PM
Prarie
I knew this rang a bell...but here's from the IBI site. You'd think this would be fixed by now. The problem does go away...but ususally you would like a compound report not to break.

COMPOUND PDF request does not correctly display BORDERs when using NOBREAK
option.

Workaround:

Remove the NOBREAK option to avoid this behavior.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Since this seems to be a bug, the only way to fix the problem is a workaround. Try playing with TOPGAP and BOTTOMGAP for the elements that have borders, Column Title and Sub-total, make the top/bottom gaps in the first report different from the second:

DEFINE FILE CAR
UN/A1 = ' ';
G/A1 = ' ';
END

TABLE FILE CAR
COUNT
CAR AS 'CAR COUNT'
BY UN NOPRINT
BY COUNTRY
BY G AS ' '
ON UN SUBTOTAL CAR AS 'TOTAL'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.1000000,
LEFTMARGIN=0.50,
RIGHTMARGIN=0.50,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='TIMES NEW ROMAN',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.02,
LEFTGAP=0.02,
TOPGAP=0.05,
BOTTOMGAP=0.05,
$
TYPE=DATA,
COLUMN=ACCT_UNIT,
STYLE=BOLD,
$
TYPE=TITLE,
BOTTOMGAP=0.08,
BORDER-BOTTOM=LIGHT,
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=TITLE,
COLUMN=G(*),
BORDER-BOTTOM=OFF,
SIZE=5,
$
TYPE=SUBTOTAL,
TOPGAP=0.02,
BOTTOMGAP=0.08,
BORDER=LIGHT,
BORDER-COLOR='WHITE',
$
TYPE=SUBTOTAL,
BY=1,
BORDER=LIGHT,
BORDER-COLOR='WHITE',
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BY=1,
COLUMN=N4,
BORDER-TOP=LIGHT,
BORDER-TOP-COLOR='BLACK',
BORDER-BOTTOM=HEAVY,
BORDER-BOTTOM-COLOR='BLACK',
$

TYPE=REPORT,
COLUMN=G(*),
SQUEEZE=OFF,
$
END

DEFINE FILE CAR
UN/A1 = ' ';
G/A1 = ' ';
END

TABLE FILE CAR
SUM
RETAIL_COST
BY UN NOPRINT
BY COUNTRY
BY G AS ' '
ON UN SUBTOTAL RETAIL_COST AS 'TOTAL'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF CLOSE
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.1000000,
LEFTMARGIN=0.50,
RIGHTMARGIN=0.50,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='TIMES NEW ROMAN',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.02,
LEFTGAP=0.02,
TOPGAP=0.05,
BOTTOMGAP=0.05,
$
TYPE=DATA,
COLUMN=ACCT_UNIT,
STYLE=BOLD,
$
TYPE=TITLE,
BOTTOMGAP=0.02,
BORDER-BOTTOM=LIGHT,
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=TITLE,
COLUMN=G(*),
BORDER-BOTTOM=OFF,
SIZE=5,
$
TYPE=SUBTOTAL,
TOPGAP=0.08,
BOTTOMGAP=0.02,
BORDER=LIGHT,
BORDER-COLOR='WHITE',
$
TYPE=SUBTOTAL,
BY=1,
BORDER=LIGHT,
BORDER-COLOR='WHITE',
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BY=1,
COLUMN=N4,
BORDER-TOP=LIGHT,
BORDER-TOP-COLOR='BLACK',
BORDER-BOTTOM=HEAVY,
BORDER-BOTTOM-COLOR='BLACK',
$

TYPE=REPORT,
COLUMN=G(*),
SQUEEZE=OFF,
$
END


Definitely not the definitive answer.


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