Focal Point
Help with Over

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

October 22, 2007, 06:09 PM
.eric
Help with Over
Say I have something along the lines of :
TABLE FILE CAR
SUM RETAIL_COST AS 'TITLE1' LENGTH AS 'TITLE2' OVER DEALER_COST AS '' WIDTH AS ''
BY CAR
END

Which outputs:
ALFA ROMEO TITLE1 19565 TITLE2 510
xxxxxxxxxxx 16235 188

Is there a way I can get it to display like:
ALFA ROMEO TITLE1 TITLE2
xxxxxxxxxxx 19565 510
xxxxxxxxxxx 16235 188

(The x's are spaces)

Eric


dev: WF 7.6.5 w/IIS + Tomcat

prod: WF 7.6.5 w/IIS + Tomcat
October 22, 2007, 07:23 PM
Tom Flynn
.eric,

Here's an idea, there may be others:

DEFINE FILE CAR
DUMMY/A1 = ' ';
END
TABLE FILE CAR
SUM
RETAIL_COST AS ''
LENGTH AS '' OVER
DEALER_COST AS ''
WIDTH AS ''
BY DUMMY NOPRINT
BY CAR AS ''
ON DUMMY SUBHEAD
"Car <+0> Title1 <+0> Title2"
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
SQUEEZE=ON,
GRID=ON, WRAP=ON,
FONT='ARIAL',
SIZE=9,
STYLE=BOLD,
JUSTIFY=CENTER,
$
-********************************************************************
-* Align the headings
-********************************************************************
TYPE=SUBHEAD,
BACKCOLOR=RGB(176 196 222),
HEADALIGN=BODY,
$
END

-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
October 23, 2007, 03:15 AM
Tony A
A slight modification to Tom's code gives exactly what you wanted -
DEFINE FILE CAR
DUMMY/A1 = ' ';
END
TABLE FILE CAR
SUM DUMMY       AS ''
    RETAIL_COST AS '' 
    LENGTH      AS '' OVER 
    DUMMY       AS ''
    DEALER_COST AS '' 
    WIDTH       AS ''
 BY CAR         AS '' NOPRINT
ON CAR SUBHEAD
"<CAR Title1 <+0> Title2"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $
TYPE=REPORT, GRID=OFF, WRAP=ON, FONT='ARIAL', SIZE=9, STYLE=BOLD, $
TYPE=TITLE, JUSTIFY=CENTER, $
-* Align the headings
TYPE=SUBHEAD, BACKCOLOR=RGB(176 196 222), HEADALIGN=BODY, $
ENDSTYLE
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
October 23, 2007, 09:22 AM
.eric
Looks good, thanks guys!

Eric


dev: WF 7.6.5 w/IIS + Tomcat

prod: WF 7.6.5 w/IIS + Tomcat
October 23, 2007, 10:16 AM
.eric
Is there a way to get this to work in PDF format?

Eric


dev: WF 7.6.5 w/IIS + Tomcat

prod: WF 7.6.5 w/IIS + Tomcat
October 23, 2007, 10:20 AM
Prarie
SET PRINTPLUS=ON
Take out the word WRAP.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
The printplus doesn't look to help. The column headings aren't aligning with the body.

Eric


dev: WF 7.6.5 w/IIS + Tomcat

prod: WF 7.6.5 w/IIS + Tomcat
Take a look at this artical by Mickey..and see if it can help you
http://www.informationbuilders.com/support/developers/htmlpdf_part2.html

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


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Looks like some good information, thanks for the link Prarie.

Eric


dev: WF 7.6.5 w/IIS + Tomcat

prod: WF 7.6.5 w/IIS + Tomcat