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     [CLOSED] bug in conditional styling PDF with squeeze?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] bug in conditional styling PDF with squeeze?
 Login/Join
 
Platinum Member
posted
I have a problem in conditional styling in PDF.
In an across report I had a conditional background on certain rows, but when I used SQUEEZE=xx on the across column to limit the width this background disappeared only in the first across column not in all others.

I was able to reproduce it with a CAR example.
TABLE FILE IBISAMP/CAR
SUM SALES
BY COUNTRY
ACROSS MODEL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *

TYPE=REPORT,    SQUEEZE=ON,     ORIENTATION=LANDSCAPE,  PAGESIZE='A4', $
TYPE=REPORT,    UNITS=PTS,      FONT='VERDANA', SIZE=9, $
TYPE=REPORT,    COLUMN=SALES,   SQUEEZE=50, $
TYPE=ACROSSVALUE, WRAP=ON, $
TYPE=DATA,      TOPGAP=2,       BOTTOMGAP=2, $
TYPE=DATA,      STYLE=BOLD,     BACKCOLOR=RGB(225 225 225), WHEN=COUNTRY EQ 'JAPAN', $

ENDSTYLE
END

It seems to appear with certain combinations of style settings. Without the squeeze I do not have the problem. If I change the TYPE=DATA GAP line to a TYPE=REPORT GAP line I do not have the problem either.

As it only happens with the first across column it looks like a bug, or am I doing something wrong?

It happens with me in 7.7.05, what about other versions?

Martin.

This message has been edited. Last edited by: Martin vK,


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 168 | Registered: March 29, 2013Report This Post
Gold member
posted Hide Post
The across column is MODEL (not SALES):

changing the line
TYPE=REPORT, COLUMN=SALES, SQUEEZE=50, $
to
TYPE=REPORT, COLUMN=MODEL, SQUEEZE=50, $

the report works (for me).


WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report This Post
Platinum Member
posted Hide Post
This way the conditional styling indeed works, but I can not size the width of the across column.

With COLUMN=MODEL, SQUEEZE=nnn I only accomplish that the column is squeezed to the maximum width of the SALES amounts. SQUEEZE=5 or 50 or 500 or just SQUEEZE=ON all give the same result.

With COLUMN=SALES, SQUEEZE=nnn I can set the desired width of the column, and with TYPE=ACROSSVALUE, WRAP=ON I can wrap the across value (column title) accordingly. But here I loose the conditional styling of the first across column.


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 168 | Registered: March 29, 2013Report This Post
Expert
posted Hide Post
WebFOCUS styling is very annoying because it does not cascade and because changing the order of the style commands can have an effect, unlike CSS.

Meanwhile, this works. I have had to do this many times recently, I suspect something has changed internally and we have to live with the change.

TABLE FILE IBISAMP/CAR
SUM SALES
BY COUNTRY
ACROSS MODEL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *

TYPE=REPORT,    SQUEEZE=ON,     ORIENTATION=LANDSCAPE,  PAGESIZE='A4', $
TYPE=REPORT,    UNITS=PTS,      FONT='VERDANA', SIZE=9, $
TYPE=REPORT,    COLUMN=SALES,   SQUEEZE=50, $
TYPE=ACROSSVALUE, WRAP=ON, $

TYPE=DATA,      TOPGAP=2,       BOTTOMGAP=2,
WHEN=COUNTRY NE 'JAPAN', $

TYPE=DATA,      TOPGAP=2,       BOTTOMGAP=2,
STYLE=BOLD,     BACKCOLOR=RGB(225 225 225), 
WHEN=COUNTRY EQ 'JAPAN', $

ENDSTYLE
END


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
Platinum Member
posted Hide Post
That is indeed a good work-around.
thanks, Martin.


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 168 | Registered: March 29, 2013Report 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     [CLOSED] bug in conditional styling PDF with squeeze?

Copyright © 1996-2020 Information Builders