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     Mixing webfocus stylesheet with manual styling.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Mixing webfocus stylesheet with manual styling.
 Login/Join
 
Member
posted
Hi,
I have a webfocus stylesheet that I'm applying to my report to get a basic look and feel. I also want to set the size of one of my columns, which I'm doing with the WRAP style attribute in the report. However, when I apply the WRAP style to my column I lose the formating in the style sheet... Is there a way I could get the basic look and feel from the webfocus style sheet and have the flexibility to set the sizes of my columns in my report? Thanks.

Below is a sample of my code for clarification purposes:

...
ON TABLE SET STYLESHEET portal
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=REPORT,
COLUMN=N2,
WRAP=5,
$
ENDSTYLE
.....
 
Posts: 20 | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
The line:
ON TABLE SET STYLE *
is the equivalent of:
ON TABLE SET STYLESHEET *

This line is probably overriding your initial style sheet, portal. Try eliminating this line from your code to get the results you want.
 
Posts: 57 | Registered: February 24, 2004Report This Post
Member
posted Hide Post
Hi Tim,

Thank you for your reply.
I tried removing ON TABLE SET STYLE *, but I get an error... my code now looks something like this:
...
ON TABLE SET STYLE portal
$
TYPE=REPORT,
COLUMN=N2,
WRAP=5,
$
TYPE=REPORT,
COLUMN=N1,
WRAP=2,
$
ENDSTYLE
...

Thanks for your help.
 
Posts: 20 | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
Another technique you can use is:

ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=N2, WRAP=5, $
-INCLUDE portal2
ENDSTYLE

Where portal2 is a fex containing all the default styling. I have used this in the past. This way you can use the default styling to start and add custom changes like you need.
 
Posts: 57 | Registered: February 24, 2004Report This Post
Expert
posted Hide Post
In fact, there's no way to set a stylesheet and then override it with inline styling.

The only way is to do what Tim J suggested - use a -INCLUDE.

I never use .STY stylesheets.


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
Alternatively use a combination of CSS and WebFOCUS style sheets.

I tend to use a standard style INCLUDE that references a standard CSS declared idurng initialisation.

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
I agreed totally with Tim and Francis.

In order to combine general style sheet and inline style we must include the general style inside a focexec and retrieve it using -INCLUDE.

ON TABLE SET STYLE *
-* Default application style (style1.fex)
-INCLUDE STYLE1
-* Other default style (stylen.fex)
-INCLUDE STYLEn

-* Particular report style inline.
-* overriding previous if duplicated...
TYPE=REPORT, COLUMN=N2, WRAP=5, $
ENDSTYLE

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Member
posted Hide Post
Thanks for the suggestions!
The include of the .fex file with the styles seems to work.

Thanks!
 
Posts: 20 | Registered: April 05, 2006Report 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     Mixing webfocus stylesheet with manual styling.

Copyright © 1996-2020 Information Builders