Applying a format mask to a numeric object Applying a format mask to a date object Adding a custom format mask

How To... 4-81 Examples The quotation marks will not appear in your output. They are used here to make it clear where there are leading or trailing spaces.

4.9.7.3 Applying a format mask to a numeric object

1. To apply a format mask to a numeric object: Table 4–6 Number format mask examples Sample Number Format Number Number Displayed -0000 7934 7934 -7934 -7934 -00000 7934 07934 -NNNN 7639 7639 535 535 -NNN 7639 - 7902 7902 - 7902 7902 +NNNN 100 +100 -99 -99 NNNN 1600 1600 -800 800 NNNNPR 1600 1600 -800 800 NNNNMI 1600 1600 -800 800- NNNVNN 343 34300 N.NNEEEE 7369 7.37E+03 SRW-0000 7782 SRW7782 -NNNN.NN 800 800 1600 1600 -NNN 10 10 -NN NNN.NN 3000 3 000 +KKNNNNN.00 1950 + 1950.00 900 + 900.00 NNNNN.00 1200 1200.00 500 500.00 NNNNN.00 DB 1200 1200.00 DB -500 500.00 NNNNN.00 CR 1200 1200.00 -500 500.00 CR 4-82 Oracle Reports Users Guide to Building Reports 2. In the Paper Design view, click the objects. 3. To apply the currency format to the object, click the Currency button in the toolbar. 4. To apply the percentage format to the object, click the Percentage button in the toolbar. 5. To add commas to the value of the object, click the Commas button in the toolbar. To move the comma right or left, click the Remove Decimal Place button or the Add Decimal Place button.

6. Choose Tools Property Inspector.

7. Under the Field node, verify the Format Mask property is set to the desired

format. 8. Set other properties as desired.

4.9.7.4 Applying a format mask to a date object

To apply a format mask to a date object:

1. In the Paper Design view, click the objects.

2. Choose Tools Property Inspector.

3. Under the Field node, set the Format Mask property to the desired date format.

4. Set other properties as desired.

4.9.7.5 Adding a custom format mask

To add a custom format mask to the default format masks list:

1. Choose Edit Preferences.

2. In the Preferences dialog box, click Edit Masks.

3. In the Format Masks dialog box, set Display to the type of format mask you want

to add.

4. In the Mask field, type the format mask to add, then click Add.

5. Click OK.

Now, you will see your new custom format masks in the list of values for the Format Mask property for fields and the Input Mask property for parameters.

4.9.7.6 Changing the format mask for multiple fields