Focal Point
[SOLVED] how to change the tot format of a field for an AHTML output ( CALC-LOCATION)

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

June 14, 2019, 11:01 AM
vnf
[SOLVED] how to change the tot format of a field for an AHTML output ( CALC-LOCATION)
Hello,

I could not find an answer on how to change the format of a column using CALC-LOCATION =TOP in a AHTML output. This is the line I have in the style

TYPE=REPORT,CALC-LOCATION =TOP,COLUMN=N21, CALCULATION=SUM, $

the line will create a total at the top as Total Sum 72,591.64.

the detail line of this column is displayed as $47.00 (with dollar sign). I would like to have the $ sign in the Total Sum as Total Sum $72,591.64

Does anyone knows if we can change the format?

thanks,

Vera

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.2.0.7,
Application Studio,
Webfocus Info-Assist
iWay Service Manager,
iWay Data Migrator
Windows, All Outputs
IBM DB2/400, MS SQL-Server 2014
June 14, 2019, 01:25 PM
MartinY
The SUM column takes the format of the detail
TABLE FILE CAR
SUM RETAIL_COST
    DEALER_COST/P6CM
BY COUNTRY
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
TYPE=REPORT, CALC-LOCATION=TOP, COLUMN=N3, CALCULATION=SUM, $
ENDSTYLE
END



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
June 15, 2019, 09:00 PM
vnf
It did not happen in my case.
the detail line has a format of sales/D20.2CBig Grin ($ sign). The dollar sign come in the detail line but not in the SUM line


WebFOCUS 8.2.0.7,
Application Studio,
Webfocus Info-Assist
iWay Service Manager,
iWay Data Migrator
Windows, All Outputs
IBM DB2/400, MS SQL-Server 2014
June 17, 2019, 05:19 AM
Tony A
Look at Martin's reply and see how his use of formatting differs from your own. Then look at the documentation to see what the differences mean.

It may also be intentional in AHTML format so you need to decide whether to continue to use the format you have or that suggested by Martin.

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 
June 18, 2019, 10:00 AM
vnf
thanks to all.
It is working now. I changed the format to CM


WebFOCUS 8.2.0.7,
Application Studio,
Webfocus Info-Assist
iWay Service Manager,
iWay Data Migrator
Windows, All Outputs
IBM DB2/400, MS SQL-Server 2014
June 18, 2019, 10:18 AM
Tony A
quote:
I changed the format to CM


SmilerSmilerSmiler

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