I'm trying to add borders to my table but it won't show. Here is a car file eg:
TABLE FILE CAR SUM COMPUTE Profit/D2.1% = CAR.BODY.DEALER_COST - CAR.BODY.RETAIL_COST; CAR.BODY.SALES BY CAR.ORIGIN.COUNTRY WHERE COUNTRY NE 'ENGLAND'; ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET STYLE * TYPE=REPORT, GRID=OFF, BORDER-TOP=HEAVY, BORDER-BOTTOM=HEAVY, BORDER-BOTTOM-STYLE=SOLID, BORDER-BOTTOM-COLOR=GREEN, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, RIGHTGAP=0.180556, LEFTGAP=0.069444, TOPGAP=0.069444, BOTTOMGAP=0.069444,$ END
Thank you in advance.This message has been edited. Last edited by: MeM,
WebFOCUS 8.2.02 Windows, All Outputs
November 02, 2016, 10:58 AM
Francis Mariani
Add
ON TABLE SET HTMLCSS ON
before
ON TABLE SET STYLE *
Documentation: Creating Reports With WebFOCUS Language > Laying Out the Report Page > Adding Grids and Borders
quote:
By default, an HTML report contains horizontal and vertical grid lines. You can remove the grid lines or adjust their use on a horizontal (BY) sort field. Grid characteristics apply to an entire HTML report, not to individual components of a report.
You can emphasize headings, footings, and column titles in a report by adding borders and grid lines around them.
Borders: In an HTML, PDF, EXL2K, or PS report, you can use BORDER attributes in a StyleSheet to specify the weight, style, and color of border lines. If you wish, you can specify formatting variations for the top, bottom, left, and right borders. BORDERS only work with the following syntax because they can only be implemented with internal cascading style sheets:
ON TABLE SET HTMLCSS ON
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