BIRT Dynamic Number Formatting
Virgil Dodson
E admin
If your number formatting is user specific or needs to be passed in using a parameter, then you need to do some extra work to make this dynamic. There are probably more that one way to do this but the example below is one way.<br />
Using a Text control on a BIRT report, you can add code similar to below to dynamically change the number formatting at runtime.
Using a Text control on a BIRT report, you can add code similar to below to dynamically change the number formatting at runtime.
<VALUE-OF> if (params["numberFormat"].value == true) { df = new Packages.java.text.DecimalFormat("#,###.00"); } else { df = new Packages.java.text.DecimalFormat("#,###"); } df.format(row["CREDITLIMIT"]); </VALUE-OF>
Warning
No formatter is installed for the format ipb
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management