Focal Point
[SOLVED] How to identify SUBTOTAL/RECOMPUTE AS 'XXX' text to apply styles?

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

July 31, 2013, 12:40 PM
bug
[SOLVED] How to identify SUBTOTAL/RECOMPUTE AS 'XXX' text to apply styles?
Let's say I have a recompute row like this:

ON SORT_FIELD
RECOMPUTE AS 'Sub Total'
...

Now I need to format the text 'Sub Total', I tried this

TYPE=SUBTOTAL, BY=SORT_FIELD, ITEM=1,

or

TYPE=SUBTOTAL, BY=SORT_FIELD, COLUMN=N1,

none of these work. Can't find it in the documentation either.

Any idea?

This message has been edited. Last edited by: <Kathryn Henning>,


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
July 31, 2013, 01:24 PM
Francis Mariani
It appears this works - specify the subtotal column name, you can't style only the text, but you can style the text and the value:

TABLE FILE CAR
SUM
SALES
WHEELBASE
BY COUNTRY
BY CAR

ON COUNTRY SUBTOTAL AS 'TOTAL COUNTRY -'

ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON, FONT='ARIAL', SIZE=9, BORDER=1, BORDER-COLOR=SILVER, $
TYPE=SUBTOTAL, COLUMN=COUNTRY, COLOR=BLUE, $

ENDSTYLE
END



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
July 31, 2013, 02:08 PM
bug
Thank you Francis!

It happens that the client wants to have normal style in the data column, bold for "Sub Total" text, and "Sub Total" has a different justification than the actual total numbers.

I may have to use SUBFOOT "


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
August 01, 2013, 04:09 AM
Danny-SRL
Francis,

Nice. Good One


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