Focal Point
EXL2K and negatives

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

January 15, 2008, 01:57 PM
Prarie
EXL2K and negatives
Can someone explain this to me? Maybe I'm supposed to know...but forgot.??
I've duplicated it with the car file. I want negative values to have ()brackets. If you will copy and run the fex below - you will see that you get brackets in the detail and the subtotal...uncomment the line and run it in Excel and you get brackets in the detail but -dash in the subtotal for negatives.
Confused

TABLE FILE CAR
SUM DEALER_COST/D7B
BY SEATS SUBTOTAL
ACROSS CAR
COMPUTE TOT/D7B = (C1 + C3 + C5 + C7 + C9 + C11)/6; AS Average
COMPUTE CW/D14B = TOT - DEALER_COST; AS 'LW - AVG'
-*ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
GRID=ON,
ORIENTATION=LANDSCAPE,$

TYPE=DATA,BACKCOLOR='LIME',FIELD=TOT,$
TYPE=DATA,BACKCOLOR='YELLOW',FIELD=CW,$
TYPE=SUBTOTAL,BACKCOLOR='SILVER',$
TYPE=TITLE,
BACKCOLOR='SILVER',$

ENDSTYLE
END


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Hmm, the background styling isn't applied for that subtotal cell either when in EXL2K. Me thinks that it has that unmistakable whiff of being a bug. I'd report it as such.

However, having said that, if you change the format of the column CW to the same as that for Dealer Cost (and vice versa) you get the braces around the value. Might be that both fields would have the same styling class and therefore have less chance of being broken by the time Eggshell gets its hands on the data stream.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
I opened a case yesterday.
I've tried the fields all the way down the chain the same size...I've made hold files...I've stood on my head...I've danced on one foot...


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
quote:
I've stood on my head...I've danced on one foot...

Interesting coding method .....

I made the following changes to your code and ran it in Eggshell and got the results that you wanted e.g. with braces surrounding the negative values - even in the subtotal.

TABLE FILE CAR
SUM DEALER_COST/D14B
BY SEATS SUBTOTAL
ACROSS CAR
COMPUTE TOT/D14B = (C1 + C3 + C5 + C7 + C9 + C11)/6; AS Average
COMPUTE CW/D14B = TOT - DEALER_COST; AS 'LW - AVG'
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
GRID=ON,
ORIENTATION=LANDSCAPE,$
TYPE=DATA,BACKCOLOR='LIME',FIELD=TOT,$
TYPE=DATA,BACKCOLOR='YELLOW',FIELD=CW,$
TYPE=SUBTOTAL,BACKCOLOR='SILVER',$
TYPE=TITLE,
BACKCOLOR='SILVER',$
ENDSTYLE
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
Oh Tony...big Hug to You! Smiler Of course my original report is much more complicated then this...but yes...one little field had a different length...Changed it and it works!

I guess all the blood had rushed to my head while I stood on it. I owe you several beers!


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
My pleasure - Millers of course? Wink

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10