Focal Point
[SOLVED] He IS Heavy, He's My Border.

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

October 29, 2018, 11:07 AM
David Briars
[SOLVED] He IS Heavy, He's My Border.
When I run the following code I see lovely light borders in the data section of the report:
TABLE FILE CAR
"HEAD 1"
"HEAD 2"
PRINT CAR 
BY COUNTRY
FOOTING
"FOOT 1"
"FOOT 2"
ON TABLE SET PAGE NOPAGE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=REPORT, 
 GRID=OFF, $
TYPE=DATA,
 BACKCOLOR=( 'WHITE' RGB(249 249 249) ),
 BORDER=LIGHT,
 BORDER-STYLE=SOLID,
 BORDER-COLOR=RGB(169 169 169), $
ENDSTYLE
END  

When I switch the output format to AHTML...
TABLE FILE CAR
"HEAD 1"
"HEAD 2"
PRINT CAR 
BY COUNTRY
FOOTING
"FOOT 1"
"FOOT 2"
ON TABLE SET PAGE NOPAGE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
TYPE=REPORT, 
 GRID=OFF, $
TYPE=DATA,
 BACKCOLOR=( 'WHITE' RGB(249 249 249) ),
 BORDER=LIGHT,
 BORDER-STYLE=SOLID,
 BORDER-COLOR=RGB(169 169 169), $
ENDSTYLE
END 

The borders are heavy not light.

I am looking at the 'Adding Grids and Borders' section of the manual, and nothing is sticking out to me as to what I need to do differently.

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
October 29, 2018, 12:43 PM
Tony A
Hi David,

Active reports seem to ignore many styling attributes, so I often override them myself using something like -
-HTMLFORM BEGIN
<style>
 td {
   border-width: 1px !important;
 }
</style>
-HTMLFORM END


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
October 29, 2018, 01:06 PM
David Briars
Thank you for your comments Tony.

Yep, CSS overriding works fine!

TABLE FILE CAR
"HEAD 1"
"HEAD 2"
PRINT CAR
BY COUNTRY
FOOTING
"FOOT 1"
"FOOT 2"
ON TABLE SET PAGE NOPAGE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
TYPE=REPORT,
 GRID=OFF, $
TYPE=DATA,
 BACKCOLOR=( 'WHITE' RGB(249 249 249) ),
 BORDER=LIGHT,
 BORDER-STYLE=SOLID,
 BORDER-COLOR=RGB(169 169 169), $
ENDSTYLE
END
-HTMLFORM BEGIN
<style>
 td {
   border-width: 1px !important;
 }
</style>
-HTMLFORM END  


Further information about my scenario: Our current 'report style' is stored within a .sty that all of our reports INCLUDE.

I am now required to have all reports now have 'thin borders'.

If I can do that in the existing .sty (i.e., use WF StyleSheet commands) then I can change all my reports by only changing the one file.

We currently don't have a common 'CSS override' file, in our report set.

Once again, many thanks.

Fingers crossed for further assistance/ideas. :-)




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
October 29, 2018, 01:52 PM
Frans
Perhaps an idea, SET CSSURL=style.css with a THINBORDER class in a profile and in the reports use TYPE=DATA, CLASS=THINBORDER, $


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
October 31, 2018, 10:02 AM
David Briars
Thank you Frans!

I created a CSS file called testcss in the repository that looks like this:
table {
 border-collapse: collapse; 
}

td {
   border-width: 0.1px !important;
 }  

I then call the CSS within the WF StyleSheet:
-SET &RANDOM = RDUNIF(D5) * RDUNIF(D5) * 10000;

TABLE FILE CAR
"HEAD 1"
"HEAD 2"
PRINT CAR
BY COUNTRY
FOOTING
"FOOT 1"
"FOOT 2"
ON TABLE SET PAGE NOPAGE
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
 TYPE=REPORT, GRID = OFF,$
 TYPE=REPORT,
  CSSURL=https:/ibi_apps/rs/ibfs/WFC/Repository/myfoldername/testcss.css?WORK=&RANDOM,$

 TYPE=DATA,
  BACKCOLOR=( 'WHITE' RGB(242 242 242) ),
  BORDER=LIGHT,
  BORDER-STYLE=SOLID,
  BORDER-COLOR=RGB(221 221 221), $

ENDSTYLE
END  

And now...

...He AIN'T heavy, he's my border. :-)