Focal Point
Computed Field on SUBFOOT

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

September 14, 2004, 05:35 PM
Lloyd
Computed Field on SUBFOOT
Hi all, I have a FEX with a GrandTotal and a SUBFOOT. I want to have a calculated value appear in the SUBFOOT but all I get are zeroes.

This is how the field gets calulated:
COMPUTE DPL%_WTD/D5.1% = IF DTY_WTD NE 0 THEN (DTY_WTD - DPL_WTD) / DPL_WTD * 100 ELSE 0; NOPRINT[/code]But when I try to use in the SUBFOOT, all I get is zero. Any Ideas?
ON TABLE SUBFOOT
"NON-HOUSE:<0+>

This message has been edited. Last edited by: <Mabel>,
September 14, 2004, 07:49 PM
reFOCUSing
Take a look at the following posts:
https://forums.informationbuilders.com/eve/forums/a/...001097331#5001097331

I think all you may have to use is <ST.fieldname

This message has been edited. Last edited by: <Mabel>,
September 14, 2004, 07:59 PM
Lloyd
Thanks Curtis I figured that out probably right after I posted....now...how can I get my negatives in that subfoot to show red?
September 15, 2004, 01:53 PM
<Pietro De Santis>
Not sure, but you may try the following:

TYPE=DATA, ITEM=2, COLOR=RED, WHEN= ST.field-name LT 0, $
TYPE=DATA, ITEM=3, COLOR=RED, WHEN= ST.field-name LT 0, $
...
September 15, 2004, 08:49 PM
Lloyd
Pietro, that didnt work I have also tried:

TYPE=FOOTING, ITEM=5,COLOR='RED',STYLE=NORMAL,WHEN=ST.DPL%_WTD LT 0,$
TYPE=TABFOOTING, ITEM=5,COLOR='RED',STYLE=NORMAL,WHEN=ST.DLY%_WTD LT 0,$

and none worked.....
September 15, 2004, 10:31 PM
<Pietro De Santis>
Sorry, I did mean SUBFOOT.

TYPE=SUBFOOT, ITEM=2, COLOR=RED, WHEN= ST.field-name LT 0, $
TYPE=SUBFOOT, ITEM=3, COLOR=RED, WHEN= ST.field-name LT 0, $
...
September 16, 2004, 01:27 PM
Lloyd
No, that didn't work either. SUBFOOT isn't an acccepted type.

Actually, I've got the syntax to turn everything RED figured out, it's just the "WHEN" clause that isn't working correctly, does anyone know if this allowed or not?

This is basically how I'm trying to do it, the first line will turn on RED regardless of the value, the second line doesn't appear to work because of the WHEN clause.


TYPE=TABFOOTING, OBJECT=FIELD, ITEM=4,COLOR='RED',STYLE=NORMAL,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=5,COLOR='RED',STYLE=NORMAL,WHEN=ST.DLY%_WTD LT 0,$

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