Focal Point
Custom Totals

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

February 06, 2008, 09:28 AM
L_G
Custom Totals
Hi all,

I have the following code:

  
DEFINE FILE CAR
L_TOTAL/I8 WITH LENGTH = L_TOTAL+LENGTH;
L_COUNT/I8 WITH LENGTH = L_COUNT+1;
END
-RUN
TABLE FILE CAR
PRINT MODEL
LENGTH
L_TOTAL
L_COUNT
END


I want to put the L_TOTAL AND L_COUNT field as a totals for the LENGTH.

Here is desired result:
 
MODEL        LENGTH
-----        ------
a            1    
b            2 
c            3
d            4
             --
SUM TOTAL:   10
COUNT:        4 
 

The report output is HTML.

I have tried to use the SUBFOOT but I can't insert the totals under the LENGTH column...


WebFOCUS 7.6
Windows 2000
Output: HTML, PDF
February 06, 2008, 10:08 AM
Tony A
LG,

You really need to read the posts that others make as well as adding your own. You might learn something else Wink

If you had read some recent posts then you would most likely have tried HEADALIGN=BODY -

L_TOTAL NOPRINT
L_COUNT NOPRINT
FOOTING
"SUM TOTAL: <L_TOTAL"
"COUNT: <L_COUNT"
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, HEADALIGN=BODY, $

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 
February 07, 2008, 11:08 AM
PBrightwell
You should also check out RECAP.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes