Focal Point
[SOLVED] Simple Style Problem when dynamically changing numeric format

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

July 03, 2013, 02:25 PM
Francis Mariani
[SOLVED] Simple Style Problem when dynamically changing numeric format
I have a problem with simple styling when dynamically changing the numeric format.

This fex works well, total sales above 40,000 are highlighted in green:
TABLE FILE CAR
SUM
SALES
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=SALES, COLOR=GREEN, WHEN= SALES GT 40000, $
ENDSTYLE
END

This fex does not works well, total sales above 40,000 are not highlighted in green:
TABLE FILE CAR
SUM
SALES/D20
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=SALES, COLOR=GREEN, WHEN= SALES GT 40000, $
ENDSTYLE
END

I tried referring to SALES by using SALES(*) and SALES(2) but neither work. Am I missing something simple?

Thanks,

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
July 03, 2013, 03:43 PM
j.gross
The line refers to SALES twice.

The second (for WHEN) will refer to the underlying column (it's really a matter of indifference which it refrs to)

The first needs to point to the reformatted column. Try COLUMN=P2
July 03, 2013, 04:19 PM
Francis Mariani
Thanks Jack.

Interestingly, this works:

TABLE FILE CAR
SUM
SALES/D20
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=SALES, COLOR=GREEN, WHEN= SALES(1) GT 40000, $
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
August 08, 2013, 09:34 AM
Rakesh P
TABLE FILE CAR
SUM
SALES/D20
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=N2, COLOR=GREEN, WHEN= N2 GT 40000, $
ENDSTYLE
END


Webfocus 7.1.6, Webfocus 7.7, Webfocus 8
August 08, 2013, 09:46 AM
Francis Mariani
I try to never use positional notation like N2...

Cheers,


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