Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Showing Subtotal for Amount field
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Showing Subtotal for Amount field
 Login/Join
 
Platinum Member
posted
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
 
Posts: 126 | Location: USA | Registered: August 21, 2008Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1707 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 126 | Location: USA | Registered: August 21, 2008Reply With QuoteReport This Post
Guru
posted Hide Post
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.
 
Posts: 411 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
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.
 
Posts: 3040 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Showing Subtotal for Amount field

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.