Focal Point
[SOLVED] Grandtotal questions

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

June 01, 2009, 03:42 PM
ChannyS
[SOLVED] Grandtotal questions
Using the following FEX:

  
TABLE FILE CAR
SUM 
     CAR
     BODYTYPE
     LENGTH
     WIDTH
     FUEL_CAP
     WEIGHT
     WEIGHT
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML

ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
	 GRID=ON,
$
TYPE=REPORT,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
ENDSTYLE
END

1. Is there a way to get the 'Total' label on the same line as the totals even though there are no BY's?
2. Assuming the answer to the first question is 'no', is there way to tell the 'Total' label line to span a few columns?  I couldn't seem to find a way to address this line.

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


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
June 01, 2009, 04:21 PM
Prarie
if you will do a search on TOTAL SAME LINE. you will get many answers on that question. You can try this ON TABLE SUBFOOT
ON TABLE SUBFOOT
"TOTAL <ST.WEIGHT"  

but look at some of the answers


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
You've hit on two weaknesses of the code. Both have been discussed here quite a bit.

1. Someone may find a solution involving a dummy column - I can't seem to get it to work.
2. There appears to be no styling tag for the "Total" text portion of a subtotal or column total.


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
Lovely!


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
Would this do the trick for you?

  
-* File channys3.fex
DEFINE FILE CAR
SP/A1=' ';
END
TABLE FILE CAR
SUM
     CAR
     BODYTYPE
     LENGTH
     WIDTH
     FUEL_CAP
     WEIGHT
     WEIGHT
BY   SP AS ' ' 

ON TABLE COLUMN-TOTAL AS '<SPAN STYLE="COLOR:RED;">TOTAL</SPAN>'
ON TABLE PCHOLD FORMAT HTML

ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
	 GRID=ON,
$
TYPE=REPORT,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
ENDSTYLE
END



Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

Nice idea. However, then I get the extra blank column on top - I'm not sure which I'd prefer (though considering the border problems you have with grandtotal on two rows this just may be a better way).

Thanks!


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv