Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] He IS Heavy, He's My Border.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] He IS Heavy, He's My Border.
 Login/Join
 
Master
posted
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
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
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
 
Posts: 822 | Registered: April 23, 2003Report This Post
Guru
posted Hide Post
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.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Master
posted Hide Post
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. :-)
 
Posts: 822 | Registered: April 23, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] He IS Heavy, He's My Border.

Copyright © 1996-2020 Information Builders