TABLE FILE CAR
SUM
SALES AS '$ SALES'
DEALER_COST AS '$ COST'
BY CAR
ACROSS COUNTRY AS ''
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
INCLUDE=PROBLUE,
$
ENDSTYLE
END
And the result is:
Now consider a single field (SALES) in the across:
TABLE FILE CAR
SUM
SALES AS '$ SALES'
BY CAR
ACROSS COUNTRY AS ''
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
INCLUDE=PROBLUE,
$
ENDSTYLE
END
And the column title for SALES does not appear!
Does anyone have a clue why this occurs? I've messed around with this and as long as more than one across field is specified the titles appear. But with a single field in the across the title does not appear.
And how was this your former version of webfocus ? I am rather sure this is not working this way in version 7.7.03
A bugfix or upgrade ?
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
January 09, 2013, 08:03 PM
Dan Satchell
Same happens in release 7.7.03, for all output formats. I'm sure it's a bug. A work-around is to add a reformat to the field, which, for some reason, causes the title to appear.
TABLE FILE CAR
SUM
SALES/D8 AS '$ SALES'
BY CAR
ACROSS COUNTRY AS ''
ON TABLE PCHOLD FORMAT PDF
END
WebFOCUS 7.7.05
January 10, 2013, 02:44 AM
Danny-SRL
George,
When you have one (1) field in an ACROSS, the rule has always been not to show the title. And this since the very early days of FOCUS on the M/F. When you have more than one, the titles appear. So when you reformat your single field, under the covers WF has issued a COMPUTE statement, hence 2 fields, hence titles. Logical, no?
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
January 10, 2013, 03:42 AM
Wep5622
quote:
So when you reformat your single field, under the covers WF has issued a COMPUTE statement, hence 2 fields, hence titles. Logical, no?
No indeed! An invisible field should not impact formatting.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
January 10, 2013, 09:29 AM
George Patton
Thank you Dan and Danny !
Boo to IBI for not fixing what is obviously a long-standing bug
They could at least document this behaviour with the work-around. I'm with Wep on this one. Let's face it - in every other situation where you DON'T want a title you issue a command like AS '' - why should it be different here?This message has been edited. Last edited by: George Patton,