Focal Point
[CLOSED] Create Separate CSS and HTML files in a TABLE request

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

November 12, 2009, 10:04 AM
richard weinbaum
[CLOSED] Create Separate CSS and HTML files in a TABLE request
My TABLE request includes the following:

 
.
.
ON TABLE HOLD FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON


this creates one html file with BOTH the report data and the css code.

Instead, I would like WebFOCUS to create 2 files. One containing the report data and the other that contains just the css code. Is this possible? I've considered post processing the output html file created and separating the text myself, but I was hoping that there was an easier way.

Anyone have any ideas? Thanks.

This message has been edited. Last edited by: Kerry,


WF 7.7.3
Windows 2003 Server
PDF
HTML
EXL2k
November 12, 2009, 10:21 AM
Francis Mariani
You cannot get WebFOCUS to create separate HTML and CSS files.

An alternative (and I feel better) method is to NOT use the HTMLCSS ssetting. Instead, use CSS classes - an HTML file is created and the CSS is your own stylesheet.

SET PAGE=NOLEAD
TABLE FILE CAR
SUM
SALES
BY COUNTRY

HEADING
"SALES REPORT"

ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON, $
TYPE=HEADING, CLASS=Head1, $
TYPE=TITLE, CLASS=ColumnTitle, $
ENDSTYLE
ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<title>sales report</title>
<style type="text/css">
body { font-family: "Trebuchet MS", sans-serif; }
td { font-size: 12px; }
.Head1 { font-size: 14px; font-weight: bold; }
.ColumnTitle { color: blue; }
</style>
!IBI.FIL.H001;
-HTMLFORM END



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 12, 2009, 10:35 AM
richard weinbaum
thank you Fransis. I should have mentioned that my requests also contain
  
.
.
TYPE=REPORT, HFREEZE=ON,SCROLLHEIGHT=4.50 ,$


and it is my understanding the the use of HFREEZE requires HTMLCSS to be turned on. Can you offer anything else? Thanks again!!


WF 7.7.3
Windows 2003 Server
PDF
HTML
EXL2k
November 12, 2009, 11:05 AM
Francis Mariani
Yes, you should have mentioned that Smiler

You may be able to use a combination of HTMLCSS and style sheet classes, the only way to find out is to try.

I should have asked, "Why?".


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 12, 2009, 11:44 AM
richard weinbaum
thanks for your help, francis. i'll give it a shot.


WF 7.7.3
Windows 2003 Server
PDF
HTML
EXL2k
November 12, 2009, 11:55 AM
Francis Mariani
Just curious as to why you need to separate the generated code into individual HTML and CSS files?


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 12, 2009, 02:22 PM
richard weinbaum
Francis - I am not the html/css expert here so I am only repeating what I thing the web developer told me. He said;

the internal css wont get processed as a style sheet only gets processed and applied when an ENTIRE page loads. (I am giving him html files in HTMTABLE format that he is incorporating into other pages). He said he needs it separated so he can force it to be applied by connecting it at run time to the document model
or having it preloaded.

Hope that makes sense.


WF 7.7.3
Windows 2003 Server
PDF
HTML
EXL2k
November 12, 2009, 02:28 PM
Francis Mariani
Unless the report is a huge HTML file, I don't think there will be a difference between the embedded CSS and the external file, but then, he's the expert.


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