Class Formatter
The Formatter class is a BIRT-provided JavaScript class that provides one static function to retrieve a formatted string from an object using any of the set String Format pattern values. These values are identical to the XML pattern markup for data type format values defined in Properties.
Formatter.format
This function returns a formatted string derived from the input object
Object. The data to format into a patterned string.
String. The validvalues include:
Custom combinations of characters and the @ wildcard for the right-aligned character, such as @@@@@-@@@@ for zip+4.The following example returns the uppercase values for the customer’s last name:
(c) Copyright Actuate Corporation 2012 |