IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Totals on 2 Lines (use subfoot instead, but ... decimal place problem)
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
wow! Lots of discussion about this. Especially at http://forums.informationbuilders.com/eve/forums/a/tpc/...571078331#1571078331.

I could not get any of the tricks to work, so I turned to the custom subfoot method. It gave me my one line totals line, but now my data has grown 2 decimal places, even though all the data involved is integer only.

How does one force subtotals (
thanks

Richard

This message has been edited. Last edited by: MTO-Solutions-Engineering,


MTO
WebFOCUS Dev Studio 5.3.2 (trying to upgrade to 7.x !)
Unix with Win XP front ends
output usually PDF (and some HTML and XLS at times)
 
Posts: 23 | Location: Toronto, Ontario, Canada | Registered: January 09, 2007Reply With QuoteEdit or Delete MessageReport This Post
Silver Member
Posted Hide Post
Use a DEFINE to change the format of the field.
Example - If the field is D8.2 change it to D8.

  
DEFINE FILE CAR
SEATS/D8 = SEATS;
END


------------------------------------
Prod: WebFOCUS 5.33 Windows/MRE/Report Caster
Dev: WebFOCUS 5.33 Windows/MRE/Report Caster
 
Posts: 35 | Registered: February 12, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
That was too easy!!! I thought that this was enough ...

PRINT
     SERV_REG AS ' '
     POLICE/D8 AS ' '
     REGISTRAR/D8 AS ' '
     TOTAL_DATA/D8 AS ' '


but obviously not.

thank you

Richard


MTO
WebFOCUS Dev Studio 5.3.2 (trying to upgrade to 7.x !)
Unix with Win XP front ends
output usually PDF (and some HTML and XLS at times)
 
Posts: 23 | Location: Toronto, Ontario, Canada | Registered: January 09, 2007Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
Richard, the redefinition POLICE/D8 is good only for report columns and subtotals, not for subfoots. Mighty Max's solution will work for report columns, subtotals and subfoots.

By the way, I have lost millions of neurons trying to fix the two-line subtotal over the years. I have never found the DEFINITIVE solution, though many have tried to help. I still feel IBI should fix the problem in the software and not suggest workarounds.


Francis



Env 1: WebFOCUS 5.3.2 Servlet - MRE/BID/Self Service/ReportCaster - MS Windows Server 2003 - IIS/New Atlanta ServletExec - MS SQL Server 2000 - DataMigrator 5.3.4
Env 2: WebFOCUS 7.6.5 Servlet - MRE/BID/Self Service - MS Windows XP SP2 - Apache Tomcat/5.5.25 - MS SQL Server 2000
Env 3: WebFOCUS 5.3.3 CGI - Self Service - AIX 5.2 - IBM DB2
Output formats: HTML, Excel 2000 and PDF
 
Posts: 3379 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
quote:
Originally posted by Francis Mariani:
I still feel IBI should fix the problem in the software and not suggest workarounds.

You have our vote. This is so easy in other products that I have used (mind you, they were all desktop based, not web based, but still, this is a classic design structure)

Richard


MTO
WebFOCUS Dev Studio 5.3.2 (trying to upgrade to 7.x !)
Unix with Win XP front ends
output usually PDF (and some HTML and XLS at times)
 
Posts: 23 | Location: Toronto, Ontario, Canada | Registered: January 09, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Totals on 2 Lines (use subfoot instead, but ... decimal place problem)

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