Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The stringFormatter allows you to configure text field values to display/download as all upper-case or lower-case letters and what text displays/downloads for text fields with null values.

<stringFormatter caseConversion="lowercase" nullValue="[null]"/>

...

The phoneFormatter is used to format phone numbers.

<field len="15" name="mainphone">

<phoneFormatter pattern="(999) 999-9999"/>

</field>

Attribute NameDescription
lenSpecifies the length of the output field
patternSee following table for sample patterns
nameName of the input field


Here are some sample patterns:

Database Field ValuePatternDownload Field Result
530-332-223399999999995303322233
530-332-223399999993322233
530-332-2233(999) 999-9999(530) 332-2233
5303322233(999) 999-9999(530) 332-2233


<numberFormatter>

The numberFormatter can be used for applying a variety of formats to numbers.

Example for applying a format for currency:

<field name="dep_other_income" len="20">

<numberFormatter format="%,d.00"/>

</field>

Attribute NameDescription
nameName of the input field
lenSpecifies the length of the output field
formatSee the following table for sample formats


Database Field ValueFormatDownload Field Result
25000"$%,d.00"$25,000.00
25000"%,d.00"25,000.00

Note: To view more format value examples, see: http://docs.oracle.com/javase/7/docs/api/java/util/ Formatter.html#syntax

...