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     Stylesheets: 33 is the magic number

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Stylesheets: 33 is the magic number
 Login/Join
 
Platinum Member
posted
I compile lots of reports into one report, using the html calls like so:

  <TR><TD>!IBI.FIL.RPRT5;</TD></TR>


Inevitably, I sometimes create reports that contain up to 40-45 individual reports within one big report.

Each report is a normal webfocus report containing css. Apparently, internet explorer has a maximum number of stylesheets that it can process. It seems to be around 33. After the 33rd stylesheet in the report processes, the remaining reports just look like unformatted plain text. Is there any way around this issue?


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Expert
posted Hide Post
Brian,

I take it from your example code that ALL your reports are HTML based? If so then why not use external stylesheets referenced once in the HTML and using -
ON TABLE SET STYLE *
......
TYPE=DATA, COLUMN=columnname, CLASS=cssstylename, $
etc.
ENDSTYLE
in your reports.

That way all your styling should be perfect across all reports no matter how many there are.

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
Platinum Member
posted Hide Post
Thanks Tony.

Actually, I'm not sure how to do that. I've never used an external stylesheet with webfocus reports. Im not even sure where I would store the stylesheet...

But I'll do some looking via help.


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Expert
posted Hide Post
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>Report Viewer</TITLE>
<link rel="stylesheet" type="text/css" href="/approot/eqp/eqreport.css">
</HEAD>

<BODY>
!IBI.FIL.OUTPUT1;<BR>
!IBI.FIL.OUTPUT2;<BR>
!IBI.FIL.OUTPUT3;<BR>
</BODY>
</HTML>
-HTMLFORM END
-EXIT

Put your CSS file in one of your application folders.


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
Expert
posted Hide Post
brian, are you using servlet? or cgi? or isapi?
I have found that , in addition to T and Francis's suggestion to simplify your style sheeting, that servlet will work, when i put out a report with 160, say, separate tables, but that isapi will choke. I don't know why,
but isapi also will choke if i use z-index along with abs positioning, so there are times i'll use servlet.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by susannah:
brian, are you using servlet? or cgi? or isapi?
I have found that , in addition to T and Francis's suggestion to simplify your style sheeting, that servlet will work, when i put out a report with 160, say, separate tables, but that isapi will choke. I don't know why,
but isapi also will choke if i use z-index along with abs positioning, so there are times i'll use servlet.


I am using servlet...or at least the URL shows http://yadayada.edu/ibi_apps/WFServlet


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Expert
posted Hide Post
Hi Brian,

As per PM - forgive me if this is too basic.

An external stylesheet to WebFOCUS is a cascading stylesheet (or CSS file) to most Web coders. It combines the styling code in one place rather than distribute it about the file on each individual page component. You would normally see the component's styling like this (using an IMAGE tag as an example) -
<IMAGE STYLE="TOP:10px; LEFT:10px; WIDTH:200px; HEIGHT:150px; ... etc.">


To centralise the code from individual components, a style section is placed in the code (normally between the HEAD tags) and a reference is made to the style name given -
<HEAD>
<STYLE>
  .image1 {TOP:10px; LEFT:10px; WIDTH:200px; HEIGHT:150px;}
</STYLE
</HEAD>
...
<IMAGE CLASS=image1>


It can be placed into a web page in a couple of ways, the two most popular are instream and linked.
Instream is how WebFOCUS achieves the styling and is shown in the above code, linked will reference an external file and is achieved -
<link rel="stylesheet" href="url goes here" type="text/css">
As you will tell from this, this file has to be available as a web resource. This could be a www address if you wanted provided that the end User had access to the internet of course! It could be placed in the IBI_HTML directory of the client which is available via a web browser as - http://[servername]/IBI_HTML - and is sometimes the easiest location to use. I tend to use the apps folders on the client machine which are available as - http://[servername]/APPROOT/[app directory name] - where I tend to use BASEAPP for the app directory name.

WebFOCUS will include a link to an external CSS file as a result of using the environment variable CSSURL (yes, really!), so including -
SET CSSURL = /approot/baseapp/mystyles.css
in your code will allow you to access the contained styles in your style section -
ON TABLE SET STYLE *
  TYPE=HEADING, IMAGE=/approot/baseapp/web.gif, CLASS=image1, $
ENDSTYLE


One advantage of using a single external CSS file to apply your styles is that you can include as many reports in your single output without any fear of getting conflicting styles. Therefore greater control over your output.

I hope this helps,

Regards

Tony



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
Expert
posted Hide Post
Brian,

One thing I forgot to mention is that when you are holding your output as HTMLFORMs and including them as per your example, then you should use Francis' method of including the stylesheet. That way you're only referencing the CSS file once and M$ IE shouldn't misbehave!

The only thing I would add to Francis' post is that when he says add it to your APPs folder, then he is refering to the ones on your client (or web) server. If you try to use the ones on your reporting server then they will not be found.

This, of course, refers to client and reporting server set-up on different machines Smiler.

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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Stylesheets: 33 is the magic number

Copyright © 1996-2020 Information Builders