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.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Create Separate CSS and HTML files in a TABLE request

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Create Separate CSS and HTML files in a TABLE request
 Login/Join
 
Member
posted
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
 
Posts: 27 | Location: NYC | Registered: February 27, 2004Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
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
 
Posts: 27 | Location: NYC | Registered: February 27, 2004Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
thanks for your help, francis. i'll give it a shot.


WF 7.7.3
Windows 2003 Server
PDF
HTML
EXL2k
 
Posts: 27 | Location: NYC | Registered: February 27, 2004Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
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
 
Posts: 27 | Location: NYC | Registered: February 27, 2004Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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     [CLOSED] Create Separate CSS and HTML files in a TABLE request

Copyright © 1996-2020 Information Builders