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.
I have a sample CSS file created within the Content folder[not in data server] in developer studio and I need to know how this CSS file be included within this HTML file.
Any help/hints/sample example would be greatly appreciated!
Thanks a lot in advance!
Regards!This message has been edited. Last edited by: info4pal,
We use a -INCLUDE to insert the below to our TABLE requests.
-DEFAULT &CSSURL = '/approot/baseapp/default.css';
-DEFAULT &STYLE_HTM = 'default_htm.sty';
-* ...
ON TABLE SET HTMLCSS OFF
ON TABLE SET CSSURL '&CSSURL'
ON TABLE SET STYLE *
INCLUDE = &STYLE_HTM,
$
-* In your table requests, put the rest of your styling here
-* End with:
-* ENDSTYLE
-* END
That doesn't work too well in combination with report painter though, it gets confused by the include. Hence, we usually apply this afterwards (if we use Report Painter at all).
I think another option is to create a file similar to the files table1.ftp and table2.ftp in your Developer Studio installation path. Here they're in C:\ibi\DevStudio7705\ibi\DevStudio77_7705\bin\.
Apparently you can set Dev Studio to use such a file as a template for tables (see the options window). Never tried that though, as it's not sufficiently flexible for our needs.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
But apparently you can also use the Insert CSS file option with an URL instead of a file, but... it HAS to be an absolute URL last time I heard (meaning it has to start with "http://").
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Here is my sample HTML page wich is created with 2 text(say text1 and text2) and I have included this line as well ( ) but nothing seems to be working.
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<script type=text/javascript>//confidential_id=IBI_ibigblloadCss if(typeof ibigblloadCss === 'function'){ibigblloadCss(null);addIntlTranslatedJS("composertrans.js");}else {alert("JavaScript alias '/ibi_apps/ibi_html' is not valid");window.location("about:blank");} HtmlPage <script for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }
<script>//confidential_id=clientEventHandlersJS
//Begin function window_onload function window_onload() {
UpdateData();
// TODO: Add your event handler code here //add onInitialUpdate() function to make changes before initial run of the reports } //End function window_onload
<script type=text/javascript>//confidential_id=IBI_ibigblloadCss if(typeof ibigblloadCss === 'function'){ibigblloadCss(null);addIntlTranslatedJS("composertrans.js");}else {alert("JavaScript alias '/ibi_apps/ibi_html' is not valid");window.location("about:blank");} HtmlPage <script for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }
<script>//confidential_id=clientEventHandlersJS
//Begin function window_onload function window_onload() {
UpdateData();
// TODO: Add your event handler code here //add onInitialUpdate() function to make changes before initial run of the reports } //End function window_onload
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
<script type=text/javascript>//confidential_id=IBI_ibigblloadCss if(typeof ibigblloadCss === 'function'){ibigblloadCss(null);addIntlTranslatedJS("composertrans.js");}else {alert("JavaScript alias '/ibi_apps/ibi_html' is not valid");window.location("about:blank");} HtmlPage <script for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }
<script>//confidential_id=clientEventHandlersJS
//Begin function window_onload function window_onload() {
UpdateData();
// TODO: Add your event handler code here //add onInitialUpdate() function to make changes before initial run of the reports } //End function window_onload
Well, obviously a web-browser would not be familiar with the IBFS protocol. It uses the HTTP-protocol. Why did you put that there?
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
You can point-and-click to add CSS and JS files in the HTML Composer GUI.
If you want to do this with the text editor, why not create a dummy HTML file and use the GUI to point-and-click and navigate to the Content area. Then edit the file in the text editor and copy/paste the line of code. Wouldn't this be the most fool-proof method?
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