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     Problem with WebFOCUS Styling - not very cascading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Problem with WebFOCUS Styling - not very cascading
 Login/Join
 
Expert
posted
I don't know if WebFOCUS styling is supposed to cascade, but it doesn't work very well.

For example, why on earth do the two style commands below not work together?

COL1 is wide and the brwser wraps the cell contents, I want to turn wrap off, so I add TYPE=REPORT, COLUMN=COL1, WRAP=OFF, $.

I also want to colour the COL1 data based on a condition, so I add TYPE=DATA, COLUMN=COL1, COLOR=RGB(0 97 113), WHEN= BODYTYPE EQ 'SEDAN', $ When I add this, the WRAP no longer works. I know I can add WRAP=OFF in the TYPE=DATA command, but why do I need to?

TABLE FILE CAR
PRINT
COMPUTE COL1/A200 = MODEL | ' '| MODEL;
*

ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON,
FONT='ARIAL', SIZE=9, BORDER=1, BORDER-COLOR=SILVER, $
TYPE=REPORT, COLUMN=COL1, WRAP=OFF, $
TYPE=DATA, COLUMN=COL1, COLOR=RGB(0 97 113), WHEN= BODYTYPE EQ 'SEDAN', $

ENDSTYLE
END


Thanks,


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
Master
posted Hide Post
Yep, I've noticed too...


It uses 'CSS' to add the style, but isn't cascading itself.

Must say I have better experience with using WF ( with or without .sty file ) to just add CLASS-names (multiple if needed ) to different parts of the report and use a 'real' .css to take care of the styling.

e.g.
TYPE=DATA,
   CLASS=datastyle,
$
TYPE=TITLE,
CLASS=titlestyle,
$
TYPE=DATA,
COLUMN=COL1
CLASS=datastyle datahighlight,
$


CSS will apply both classes to the HTML-element when specified.

This might be something to work with,

Greets,
Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Expert
posted Hide Post
Try changing "DATA" to "REPORT" in your "TYPE=DATA, COLUMN=COL1, COLOR=RGB(0 97 113), WHEN= BODYTYPE EQ 'SEDAN', $" line.

DATA Trumps REPORT when cascading.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Except that I don't what to affect the column title styling...


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
Does TITLE Trump REPORT (I think so)? If so, try adding "TYPE=TITLE, STYLE=NORMAL, $" after you "TYPE=REPORT, COLUMN=COL1, COLOR=RGB(0 97 113), WHEN= BODYTYPE EQ 'SEDAN', $" line.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 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     Problem with WebFOCUS Styling - not very cascading

Copyright © 1996-2020 Information Builders