Focal Point
Underline/Double Underline totals

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

November 19, 2009, 02:34 PM
T.Peters
Underline/Double Underline totals
Can anyone give me an example of how to code for an underline on subtotals and a double underline for grand totals?
I am building a financial report and they want to see this as a standard view for financial reports. I have heard there is a way to do this in WEBFOCUS, but since we are running DB2 WebQuery, I'll have to edit the source manually to get this to work.


WebFOCUS: 7702
O/S : Windows
Data Migrator: 7702
November 19, 2009, 03:13 PM
Francis Mariani
This shows how to include double and single borders on specific elements of a Financial report in HTML format:

SET PAGE-NUM=OFF
TABLE FILE LEDGER
SUM AMOUNT FOR ACCOUNT
1010 AS 'CASH ON HAND'    LABEL CASH    OVER
1020 AS 'DEMAND DEPOSITS' LABEL DD      OVER
1030 AS 'TIME DEPOSITS'   LABEL TD      OVER
RECAP TOTCASH = R1 + R2 + R3; AS 'TOTAL CASH'  
ON TABLE SET ONLINE-FMT HTML 
ON TABLE SET HTMLCSS ON 
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, $  
TYPE=REPORT, LABEL=TOTCASH, 
  BORDER-TOP=ON, BORDER-TOP-STYLE=DOUBLE, 
  BORDER-BOTTOM=LIGHT, BORDER-BOTTOM-STYLE=SOLID, $ 
ENDSTYLE
END


The double line does seem to work in PDF reports.

Documentation: Creating Reports With WebFOCUS Language > Creating Financial Reports With Financial Modeling Language (FML) > Formatting an FML Report > Add and Format Row and Cell Borders


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
November 19, 2009, 03:55 PM
Darin Lee
You can also just use the functionality built into FML for creating underlines:

BAR AS '-' creates a single underline

BAR AS '=' creates a double underline

Just put the appropariate BAR statement wherever you want the underlines to appear.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat