IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Computed Field on SUBFOOT
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Platinum Member
Posted
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>,
 
Posts: 112 | Location: New York City | Registered: May 21, 2004Reply With QuoteEdit or Delete MessageReport This Post
Guru
Posted Hide Post
Take a look at the following posts:
http://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>,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Thanks Curtis I figured that out probably right after I posted....now...how can I get my negatives in that subfoot to show red?
 
Posts: 112 | Location: New York City | Registered: May 21, 2004Reply With QuoteEdit or Delete MessageReport This Post
<Pietro De Santis>
Posted
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, $
...
 
Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
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.....
 
Posts: 112 | Location: New York City | Registered: May 21, 2004Reply With QuoteEdit or Delete MessageReport This Post
<Pietro De Santis>
Posted
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, $
...
 
Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
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>,
 
Posts: 112 | Location: New York City | Registered: May 21, 2004Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Computed Field on SUBFOOT

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.