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     [SOLVED] WF EXL2K simple style problem when using WRAP

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] WF EXL2K simple style problem when using WRAP
 Login/Join
 
Expert
posted
This is really annoying because the styling parser in my head can work this out but WF cannot.

Here's a simplified example of my real world report:

I need to
- highlight certain rows
- wrap certain columns

Somehow these two requirements are colliding with other WF styling. In the example below, the addition of TYPE=DATA, $ causes the SALES column to not have the background colour. The TYPE=DATA, $, or TYPE=DATA, COLOR=NAVY, $ simulates the other WF styling in the report, this causes the problem and I see no relation with this and TYPE=DATA, BACKCOLOR=RED, WHEN= COUNTRY EQ 'FRANCE', $

TABLE FILE CAR
SUM
SALES AS 'WIDE COLUMN TITLE'

BY COUNTRY

ON TABLE SET STYLE *

UNITS=PTS,
$

TYPE=REPORT, COLUMN=SALES, WRAP=50, $

TYPE=DATA, 
-*COLOR=NAVY,
$

TYPE=DATA, BACKCOLOR=RED, WHEN= COUNTRY EQ 'FRANCE', $

ENDSTYLE

ON TABLE PCHOLD FORMAT EXL2K
END

This message has been edited. Last edited by: Francis Mariani,


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
What I want


What I get


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
This certainly doesn't look right.

The back colour style should take the inherited attributes and change them

Can't understand why is the wrap affecting the background colour.

Have you added an extra style to fix it ?

TYPE=DATA, COLUMN=SALES, BACKCOLOR=RED, WHEN= COUNTRY EQ 'FRANCE', $


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
How about adding the opposite condition as well?
Not sure if this will work in your real program.
  
TABLE FILE CAR
SUM
   SALES AS 'WIDE COLUMN TITLE'
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=PTS,$
TYPE=REPORT,COLUMN=SALES,WRAP=50,$
TYPE=DATA,COLOR=NAVY,BACKCOLOR=NONE,WHEN=COUNTRY NE 'FRANCE',$
TYPE=DATA,COLOR=NAVY,BACKCOLOR=RED,WHEN=COUNTRY EQ 'FRANCE',$
ENDSTYLE
END


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Expert
posted Hide Post
Unfortunately, I can't declare the opposite style, I have multiple colours being set - so there is no opposite Frowner


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
I suspect you will end up with one massive stylesheet.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Case-opening time I guess...


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
Gold member
posted Hide Post
Hi,
Though I could not see the image attached(my computer problem) but going through the thread it seems the requirement is to put conditional backcolor in data column.
Following code change might be helpful,please review once.
TABLE FILE CAR
SUM
SALES AS 'WIDE COLUMN TITLE'

BY COUNTRY

ON TABLE SET STYLE *

UNITS=PTS,
$

TYPE=DATA, BACKCOLOR=RED, WHEN= COUNTRY EQ 'FRANCE', $
TYPE=DATA, COLUMN=SALES, WRAP=50, $

TYPE=DATA,
-*COLOR=NAVY,
$


ENDSTYLE

ON TABLE PCHOLD FORMAT EXL2K
END


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
 
Posts: 82 | Registered: January 06, 2014Report This Post
Virtuoso
posted Hide Post
I think the source of the problem is that the report-wide style on the SALES column already defines a style for cells in that column. That style has been set, so any subsequent styling for matching cells is ignored.

What helps is to also specify conditional styling for those specific cells, as conditional styles override default styles:
TABLE FILE CAR
SUM
SALES AS 'WIDE COLUMN TITLE'

BY COUNTRY

ON TABLE SET STYLE *

UNITS=PTS,
$

TYPE=REPORT, COLUMN=SALES, WRAP=50,$

TYPE=DATA, 
-*COLOR=NAVY,
$

TYPE=DATA, BACKCOLOR=RED, WHEN=COUNTRY EQ 'FRANCE', $
TYPE=DATA, COLUMN=SALES, BACKCOLOR=RED, WHEN=COUNTRY EQ 'FRANCE', $

ENDSTYLE

ON TABLE PCHOLD FORMAT EXL2K
END


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 :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
"the report-wide style on the SALES column already defines a style for cells in that column" - I expect WF styling to behave like CSS.


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
jvb, moving the style
TYPE=DATA,
-*COLOR=NAVY,
$
to the bottom makes no difference.


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
Wep5622,

your suggestion works!

I end up with this in my stylesheet:

TYPE=REPORT, COLUMN=PREV_AMOUNT_ABS       , WRAP=80, $
TYPE=REPORT, COLUMN=PREV_EARLIEST_DTE     , WRAP=70, $
TYPE=REPORT, COLUMN=PROB_OF_FORCASTED_DEAL, WRAP=50, $
TYPE=REPORT, COLUMN=PROBABILITY_PREV      , WRAP=50, $

TYPE=DATA, COLUMN=PREV_AMOUNT_ABS       , BACKCOLOR=RGB(188 211 217)   , WHEN= NEW_INVESTMENT EQ 'T'        , $ Blue
TYPE=DATA, COLUMN=PREV_EARLIEST_DTE     , BACKCOLOR=RGB(188 211 217)   , WHEN= NEW_INVESTMENT EQ 'T'        , $ Blue
TYPE=DATA, COLUMN=PROB_OF_FORCASTED_DEAL, BACKCOLOR=RGB(188 211 217)   , WHEN= NEW_INVESTMENT EQ 'T'        , $ Blue
TYPE=DATA, COLUMN=PROBABILITY_PREV      , BACKCOLOR=RGB(188 211 217)   , WHEN= NEW_INVESTMENT EQ 'T'        , $ Blue
TYPE=DATA, COLUMN=PREV_AMOUNT_ABS       , BACKCOLOR=RGB(179 221 155)   , WHEN= INFLOW_FLAG    EQ 'TRUE'     , $ Green
TYPE=DATA, COLUMN=PREV_EARLIEST_DTE     , BACKCOLOR=RGB(179 221 155)   , WHEN= INFLOW_FLAG    EQ 'TRUE'     , $ Green
TYPE=DATA, COLUMN=PROB_OF_FORCASTED_DEAL, BACKCOLOR=RGB(179 221 155)   , WHEN= INFLOW_FLAG    EQ 'TRUE'     , $ Green
TYPE=DATA, COLUMN=PROBABILITY_PREV      , BACKCOLOR=RGB(179 221 155)   , WHEN= INFLOW_FLAG    EQ 'TRUE'     , $ Green
TYPE=DATA, COLUMN=PREV_AMOUNT_ABS       , BACKCOLOR=RGB(214 214 214)   , WHEN= STATUS_FLAG    EQ 'History'  , $ Grey
TYPE=DATA, COLUMN=PREV_EARLIEST_DTE     , BACKCOLOR=RGB(214 214 214)   , WHEN= STATUS_FLAG    EQ 'History'  , $ Grey
TYPE=DATA, COLUMN=PROB_OF_FORCASTED_DEAL, BACKCOLOR=RGB(214 214 214)   , WHEN= STATUS_FLAG    EQ 'History'  , $ Grey
TYPE=DATA, COLUMN=PROBABILITY_PREV      , BACKCOLOR=RGB(214 214 214)   , WHEN= STATUS_FLAG    EQ 'History'  , $ Grey
TYPE=DATA, COLUMN=PREV_AMOUNT_ABS       , BACKCOLOR=RGB(255 123 123)   , WHEN= FORECAST_GROUP EQ 'Cancelled', $ Red
TYPE=DATA, COLUMN=PREV_EARLIEST_DTE     , BACKCOLOR=RGB(255 123 123)   , WHEN= FORECAST_GROUP EQ 'Cancelled', $ Red
TYPE=DATA, COLUMN=PROB_OF_FORCASTED_DEAL, BACKCOLOR=RGB(255 123 123)   , WHEN= FORECAST_GROUP EQ 'Cancelled', $ Red
TYPE=DATA, COLUMN=PROBABILITY_PREV      , BACKCOLOR=RGB(255 123 123)   , WHEN= FORECAST_GROUP EQ 'Cancelled', $ Red


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
Virtuoso
posted Hide Post
quote:
Originally posted by Francis Mariani:
"the report-wide style on the SALES column already defines a style for cells in that column" - I expect WF styling to behave like CSS.


Yeah, that's what I expected initially as well. I've learned the hard way that it does not.


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 :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
Wep5622, thanks for your assistance.


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
Glad Wep5622 could help


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Frankie, it works fine in 768 just as you wrote it. i tried changing TYPE=REPORT, to TYPE=TITLE, just for grins. made no dif. both ways worked fine, regardless of output type.
so its 77 wierdness, i guess.




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
Expert
posted Hide Post
I think v7.705 introduced some bugs, or quirks that I haven't met before. Fix... Break... Fix... Break... Fix... Break... Fix... Break... Fix... Break... Fix... Break... Fix... Break... Fix... Break... Fix... Break...


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
Virtuoso
posted Hide Post
I get the impression that in past releases some things worked unintentionally.

With 7.7 IBI has done a lot of code tightening (sometimes too much IMHO, like not allowing an END statement at the end of a single-line JOIN statement) and such unintended "features" started breaking.

That wouldn't really be a problem if IBI were aware of such usage and implemented a fix, but perhaps we have been a bit more creative in our usage than they expected :P


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 :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report 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     [SOLVED] WF EXL2K simple style problem when using WRAP

Copyright © 1996-2020 Information Builders