Focal Point
[BUG - WORKAROUND] Across Styling for EXL2K works in v5.3.2 - does not work in v7.6.5

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/49210241

February 20, 2009, 06:19 PM
Francis Mariani
[BUG - WORKAROUND] Across Styling for EXL2K works in v5.3.2 - does not work in v7.6.5
The following example works in v5.3.2 EXL2K - the Across Column SALES is coloured green. In v7.6.5 it is the default color black, and the data is not formatted as D9.2M. For PDF and HTML it works as expected. For EXL2K the wrong field is displayed - SALES is displayed without the reformat. Of course, I know of a few workarounds, but I'd rather not have to modify a pile of programs.

-SET &OUTFMT = 'EXL2K';
-*SET &OUTFMT = 'PDF';
-*SET &OUTFMT = 'HTML';

TABLE FILE CAR
SUM
SALES/D9.2M AS ''
ACROSS COUNTRY AS 'SALES'
BY SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=8, COLOR=BLUE, $
TYPE=REPORT, ACROSSCOLUMN=SALES, COLOR=GREEN, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
ON TABLE PCHOLD FORMAT &OUTFMT
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
February 20, 2009, 06:41 PM
Francis Mariani
quote:
TYPE=REPORT, ACROSSCOLUMN=SALES, COLOR=GREEN, $
it looks like this is the culprit - remove this line and the column is formatted correctly.


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
February 21, 2009, 03:42 AM
susannah
ew yuck
thats a bug alright.
francesco, btw, why does conditional styling not work on ACROSSs?

This message has been edited. Last edited by: susannah,




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 23, 2009, 04:50 AM
nubi
What about:

quote:
TYPE=DATA, COLUMN=SALES, COLOR=GREEN, $


?

this was probably one of the workarounds you had in mind but this is what i would have done first as i wouldn't consider the sales column an across column


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
February 23, 2009, 10:06 AM
Francis Mariani
SALES is definitely an Across column - there is more than one SALES column displayed in the row.

TYPE=DATA, COLUMN=SALES, only affects the first SALES column. TYPE=DATA, COLUMN=SALES(*) doesn't work at all.

Susannah, "why does conditional styling not work on ACROSSs?" - Very good question.


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
February 23, 2009, 12:23 PM
Francis Mariani
Susannah,

Here's an example of a conditional ACROSS:

TABLE FILE CAR
PRINT DEALER_COST
ACROSS COUNTRY
BY CAR
ON TABLE SET STYLE *
TYPE=DATA, ACROSSCOLUMN=DEALER_COST, COLOR=RED, WHEN=DEALER_COST GT 9000, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END


Seems to work.


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
February 23, 2009, 02:34 PM
susannah
ah...
i was being fuzzy...
what i would want the condition on is the across column value
WHEN=COUNTRY EQ 'ENGLAND',$




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 23, 2009, 02:49 PM
Francis Mariani
susannah, you're asking for too much Smiler 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
February 23, 2009, 02:52 PM
Francis Mariani
TABLE FILE CAR
PRINT 
DEALER_COST
COUNTRY NOPRINT
ACROSS COUNTRY
BY CAR
ON TABLE SET STYLE *
TYPE=DATA, ACROSSCOLUMN=DEALER_COST, COLOR=RED, WHEN=COUNTRY EQ 'ITALY', $
ENDSTYLE
-*ON TABLE PCHOLD FORMAT EXL2K
END

This changes the report output a tiny bit, because more than one column is specified in the PRINT (DEALER_COST and COUNTRY).


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
February 23, 2009, 03:42 PM
Kerry
Hi Francis,

I passed this one internally and was suggested that the issue can be reproduced in 768. It is better to contact Information Builders' Customer Support Services and open a case for this problem so that it can be submitted to appropriate department to address it.

To open a case, you may either call at 1-800-736-6130, or access online at InfoResponse.

Hope this helps. Smiler

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
February 24, 2009, 03:01 AM
nubi
quote:
SET &OUTFMT = 'EXL2K';
-*SET &OUTFMT = 'PDF';
-*SET &OUTFMT = 'HTML';

TABLE FILE CAR
SUM
SALES/D9.2M AS ''
ACROSS COUNTRY AS 'SALES'
BY SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=8, COLOR=BLUE, $
TYPE=REPORT, ACROSSCOLUMN=SALES, COLOR=GREEN, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
ON TABLE PCHOLD FORMAT &OUTFMT
END


You are right..

what about:
 -SET &OUTFMT = 'EXL2K';
-*SET &OUTFMT = 'PDF';
-*SET &OUTFMT = 'HTML';

TABLE FILE CAR
SUM
SALES/D9.2M AS ''
ACROSS COUNTRY AS 'SALES'
BY SEATS
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', SIZE=8, COLOR=BLUE, $
TYPE= ACROSSTITLE, COLOR=GREEN, $
TYPE=REPORT, ACROSSCOLUMN=N1, COLOR=GREEN, $
TYPE=TITLE, STYLE=BOLD,COLOR=GREEN, $
ENDSTYLE
ON TABLE PCHOLD FORMAT &OUTFMT
END 


its still not quite there but the ACCROSSCOLUMN=N1 should give you a starting point?


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
February 24, 2009, 09:39 AM
Francis Mariani
I have steadfastly refused to use column notation syntax in my style-sheet (as evidenced by this posting yesterday, How to you identify columns example N1 goes with what column? it's not column one) and now it saves the day!

Thank you very much nubi, for being less narrow-minded than me - you are absolutely right, column notation fixed the problem.


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
February 24, 2009, 09:48 AM
susannah
klugy w/a, francesco
but hyper clever...as usual.
i'll give it a go. merci




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 24, 2009, 11:31 AM
nubi
quote:
Originally posted by Francis Mariani:
I have steadfastly refused to use column notation syntax in my style-sheet (as evidenced by this posting yesterday, How to you identify columns example N1 goes with what column? it's not column one) and now it saves the day!

Thank you very much nubi, for being less narrow-minded than me - you are absolutely right, column notation fixed the problem.


to be honest its not obvious and i spent simply ages trying to work this out, it also doesn't appeal to my preference for precise code so i had also discounted the idea....


ive just tried to explain why but deleted the paragraph as i was confusing the issue Big Grin- ill try again tomorrow as i must get off.



Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
March 11, 2009, 10:23 AM
Francis Mariani
From the case I opened regarding this problem:
quote:
This issue has been addressed and tested successfully in WebFOCUS release 769 which is not yet available. We won't be able to obtain a hotfix for release 765.



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