Focal Point
Formatting of 'BY' fields not taking

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

August 01, 2006, 08:44 AM
Guillo
Formatting of 'BY' fields not taking
Why are the BY fields not accepting the style formats? These 2 BY fields are not being formatted:

HLD_FILE1.ACCOUNT_NUMBER AS 'BILLING ACCOUNT'
HLD_FILE1.EFFECTIVE_DATE AS 'EFFECT. DATE'

BY HLD_FILE1.ACCOUNT_NUMBER NOPRINT SKIP-LINE
BY HLD_FILE1.EFFECTIVE_DATE NOPRINT

The format statement reads:

TYPE=TITLE, COLUMN=HLD_FILE1.ACCOUNT_NUMBER, JUSTIFY=lEFT, style=bold, COLOR=BLUE, $
TYPE=TITLE, COLUMN=HLD_FILE1.EFFECTIVE_DATE, JUSTIFY=RIGHT, style=bold, COLOR=BLUE, $

All other fields in the report have similiar formats and they work. When the report is extracted to Excel, the titles for these fields have no formatting applied. What am I missing?
August 01, 2006, 08:53 AM
Leah
It is my understanding that using EXCEL not EXL2K loses all formating. Is this your case?


Leah
August 01, 2006, 08:53 AM
Jim_at_LM
Try: COLUMN=N2 - or N3 etc.


WebFOCUS 7.6.11, WINDOWS, HTML, PDF, EXCEL
August 01, 2006, 09:05 AM
Glenda
Remove the noprint from the by statement like such:

TABLE FILE CAR
PRINT BODYTYPE
MODEL
BY COUNTRY SKIP-LINE
BY CAR

ON TABLE SET STYLE *
TYPE=TITLE, COLUMN=COUNTRY, JUSTIFY=LEFT, style=BOLD, COLOR=BLUE, $
TYPE=TITLE, COLUMN=CAR, JUSTIFY=RIGHT, style=BOLD, COLOR=BLUE, $
TYPE=TITLE, JUSTIFY=LEFT, style=BOLD, COLOR=RED, $
TYPE=TITLE, JUSTIFY=RIGHT, style=BOLD, COLOR=RED, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END


Glenda

In FOCUS Since 1990
Production 8.2 Windows
August 01, 2006, 09:39 AM
Guillo
I'm using EXL2K which would be the only way to get formatting.
August 01, 2006, 09:42 AM
susannah
guillo, what you're missing is that you are referencing your field name two times.
TABLE FILE CAR
SUM SALES BY SALES
...
so when your style sheet says
TYPE=DATA,COLUMN=SALES,COLOR=BLUE,$
it will reference the FIRST instance of SALES that it sees.
In your example, you have NOPRINTed your first instance of SALES, so you don't see the formatting anyway.
If you must SUM SALES BY SALES
either
1. apply your formatting using Column notation (C1, C2, etc)
or
2. use a dummy field to sort by
DEFINE FILE CAR
SORTSALES/I8=SALES;
END
TABLE FILE CAR
SUM SALES BY SORTSALES NOPRINT
...
then apply your style to SALES and it will show up fine.
ok?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 01, 2006, 10:02 AM
Guillo
It worked. I created some dummy define fields and used them in the BY statement with NOPRINT. I kept the rest of the statement the same and the report was properly formatted.

Thank you all for your suggestions.
August 01, 2006, 10:16 AM
Tony A
The alternative would have been to use the syntax that has recently been mentioned -

TYPE=DATA, COLUMN=SALES(*), ...........

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 
August 01, 2006, 01:02 PM
susannah
ah! now i get it. thanks T.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID