Focal Point
[CLOSED] STYLE SHEET - is there a way to Col @ Data Level with condition

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

October 16, 2014, 04:45 PM
FOCdeveloper
[CLOSED] STYLE SHEET - is there a way to Col @ Data Level with condition
Hi All:

Have several data columns with $ Values.. I know individually I can color it based on the value.. BUT
is there a way to specify at the DATA level to display any negative number in different color, for example RED..

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
October 16, 2014, 04:50 PM
susannah
and
TYPE=DATA,COLUMN=THING,COLOR=RED,WHEN=THING LT 0,$
doesn't work for you???




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
October 16, 2014, 04:57 PM
Waz
Wow, quick....


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!

October 17, 2014, 11:25 AM
FOCdeveloper
Thanks Susannah. Yes It does.. but I was hoping to not use COLUMN..

Thanks


Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
October 18, 2014, 05:55 PM
susannah
i'm going to resist every temptation to ask 'Why not?'...
ok, if you are willing to xlate your data item from numeric to alpha (use FPRINT for max control), then you can DEFINE a text variable that contains the font color tag surrounding the FPRINTed value.
got it?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
October 20, 2014, 10:16 AM
Rifaz
quote:
several data columns with $ Values


How to print in red negative numbers?

There are 3 types of identifiers to refer a column.. P,N,C

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


-Rifaz

WebFOCUS 7.7.x and 8.x
October 20, 2014, 11:36 AM
FOCdeveloper
Susannah I have 12 Mons Buckets + total column for 30 rows..
Rifaz, Thanks Tried your approach it works fine but my currency fields are mentioned in subheads

 
"<LDESC1<+0><GOAL_DUMMY<+0><MTD_AMT1<+0><MTD_AMT2<+0><MTD_AMT3<+0><MTD_AMT4<+0><MTD_AMT5<+0><MTD_AMT6<+0><MTD_AMT7<+0><MTD_AMT8<+0><MTD_AMT9<+0><MTD_AMT10<+0><MTD_AMT11<+0><MTD_AMT12<+0><MTD_AMTTOT><+0><BLK_GOAL<+0><BLK_FIMP"

 



Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 )
SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2
WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
October 20, 2014, 12:33 PM
Rifaz
Subfoot Condition formatting

Use LE 0 in your conditional formatting.


-Rifaz

WebFOCUS 7.7.x and 8.x