Focal Point
[CLOSED] Showing Subtotal for Amount field

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

January 30, 2019, 11:28 AM
FOCdeveloper
[CLOSED] Showing Subtotal for Amount field
Hi All:

I am converting old Legacy report written on VM platform to Webfocus 8.1.05
it is sorting by Location and then st.amount on subfoot heading. see the code below

 
ON LOCATION SUBFOOT
"</1 <60 DEBIT/CREDIT BALANCE <84> <ST.AMOUNT> <105 ***</1"
 

When I run it for the amount on subfoot heading it shows 0.

it shows the subtotal amount if I add Amount in the BY fields, but it changes the sort order..

if anyone has any idea how to show subtotal on the amount field without having it in the BY fields to get around it, would appreciate it.
Thanks

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


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
January 30, 2019, 11:33 AM
BabakNYC
I always thought ON fieldname always required a corresponding BY fieldname. Is that not the case in the VM version of the FOCEXEC?


WebFOCUS 8206, Unix, Windows
January 30, 2019, 11:39 AM
FOCdeveloper
Yes AMOUNT is in the print statement and the BY statements have location then ON LOCATION SUBFOOT


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
January 30, 2019, 12:28 PM
Frans
This works fine in 8.2, could you try this code:
   
TABLE FILE CAR
PRINT MODEL
BY CAR
ON CAR SUBFOOT
"</1 <60 DEBIT/CREDIT BALANCE <84> <ST.SALES> <105 ***</1"
END



Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
February 04, 2019, 06:10 PM
Doug
Or,
TABLE FILE CAR
PRINT MODEL
BY CAR SUBFOOT
"</1 <60 DEBIT/CREDIT BALANCE <84> <ST.SALES> <105 ***</1"
END



   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.