Focal Point
Creating Dynamically Formatted Fields - I knew this was too good to be true!
July 25, 2007, 06:42 PM
Francis MarianiCreating Dynamically Formatted Fields - I knew this was too good to be true!
Creating Dynamically Formatted FieldsI knew this was too good to be true!
Here's an example from the 5.3.2 manual:
DEFINE FILE CAR
MYFORMAT/A8=DECODE COUNTRY ('ENGLAND' 'P15.2C' 'JAPAN' 'P15.0' ELSE 'P15.2M');
END
TABLE FILE CAR
SUM SALES/MYFORMAT
BY COUNTRY
-*ON TABLE PCHOLD FORMAT EXL2K
END
Uncomment the format EXL2K line and everything falls down - no decimal places, no commas.
Would someone please try this code on WF newer than 5.3.2?
Thanks.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 25, 2007, 07:11 PM
Darin Leequote:
DEFINE FILE CAR
MYFORMAT/A8=DECODE COUNTRY ('ENGLAND' 'P15.2C' 'JAPAN' 'P15.0' ELSE 'P15.2M');
END
TABLE FILE CAR
SUM SALES/MYFORMAT
BY COUNTRY
-*ON TABLE PCHOLD FORMAT EXL2K
END
works in 7.1.6 - both for HTML and for EXL2K
Regards,
Darin
In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
July 25, 2007, 07:50 PM
FortuneCookieI just tried it on 7.6.2 and it worked. HTML and EXL2K output looked the same
Prod: WebFOCUS 7.1.6, Windows 2003
Dev: WebFOCUS 7.6.2, Windows 2003
July 26, 2007, 04:53 AM
RolandWorked in 7.1.5 !
Except that for Japan instead of '78030.' the value displayed was '78030' (without the dot like in HTML).
Roland
Prod: WF 7.1.5
Test: WF 7.6.4
Unix Sun Solaris
HTML, PDF, EXL2K
July 26, 2007, 10:11 AM
Francis MarianiThanks everyone. Now I'll wait for my client to upgrade...
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 26, 2007, 10:12 AM
LeahCOUNTRY SALES
ENGLAND 12,000.00
FRANCE $.00
ITALY $30,200.00
JAPAN 78030
W GERMANY $88,190.00
What I get on 7.6.2 in excel, changed the P to D and here's what I get.
COUNTRY SALES
ENGLAND 12,000.00
FRANCE $.00
ITALY $30,200.00
JAPAN 78,030
W GERMANY $88,190.00
I'm assuming what you'd like is currency??
Leah
July 26, 2007, 11:18 AM
Francis MarianiI have a report where I'd like to display a measure with a different numeric format based on a BY field. This works in HTML, but does not in EXL2K.
(It would have been great if the people that wrote the manual tried the supplied example in different formats, then the bug would have been found a lot sooner than waiting for a customer to find it).
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 26, 2007, 12:10 PM
PrarieDon't you know we are quality assurance personnel?
| In Focus since 1993. WebFOCUS 7.7.03 Win 2003 |
July 26, 2007, 12:49 PM
Tony A... not only for IB but also for Microshaft
T