[SOLVED] Styling Column Titles - Active Report With Across.
TABLE FILE CAR
SUM SALES AS 'Amount'
BY COUNTRY
BY CAR
ACROSS BODYTYPE
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
TYPE=ACROSSTITLE, SIZE=16, COLOR=RED, BACKCOLOR=GREEN, FONT='Arial', JUSTIFY='CENTER', $
TYPE=ACROSSVALUE, SIZE=16, COLOR=RED, BACKCOLOR=GREEN, FONT='Arial', JUSTIFY='CENTER', $
TYPE=TITLE, SIZE=16, COLOR=RED, BACKCOLOR=GREEN, FONT='Arial', JUSTIFY='CENTER', $
ENDSTYLE
END
My requirement is for the 'column headings' of the SALES columns to be Arial, centered, and a font size of 16.
When I run the above code, the 5 instances of 'Amount' seem to be 'Courier', left justified, and a very small font size.This message has been edited. Last edited by: FP Mod Chuck,
Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
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
June 23, 2017, 09:50 PM
Francis Mariani
Upon inspection of the resulting HTML I discovered the across value titles are contained within tt tags - why on earth would Teletype Text Element be used? Unless someone else has a smarter solution, a workaround might be to include some CSS to alter the default style of tt or one of its parent elements.