![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The above pattern defines a format for positive numbers (PosPrefix PosFormat PosSuffix) and a format for negative numbers (NegPrefix NegFormat NegSuffix) separated by a semicolon (;).The format can include the formatting characters shown in Table 16. Each character is replaced with locale-specific text when the number is formatted.
Table 17 Numeric Control Sample Formats
2. Go to the Properties tab in the Properties view for the text input control and select the Numeric check box. This enables the Format options.
a. External Reference: Select a format from an external resource. See Inserting External Reference Format
b. Custom: Define a custom format. See Inserting a Custom FormatBy selecting the External Reference option, you can use one of the predefined formats from the common resource bundle. To use an external reference format, perform the following steps:
1.
2. Click theicon to display the Resource Picker.
You can also create your own custom formats and add them to the Resource Picker list.
The new custom formats must be placed under the Presentation Resources special folder.
1. In the Project Explorer, go to the context menu of the Presentation Resources folder and click New > File.
2. On the New File dialog box, type the file name and use the extension .properties. The builder creates matching <name>.properties.json and <name>.locales.json files in the same folder.’\u00A4’ is the Unicode value for the ¤ currency symbol.
1.
3. Click theicon to display the Pick Resource dialog box.
4. Figure 121 Add Custom Format File to Resource ListOnce you have added the newly-created .properties file as a form external resource reference, the new formats are available in the Resource Picker.By using the Custom option, you can choose from some example formats or define your own format inline. To use a custom format, perform the following steps:
1. Figure 122 Use Custom Format for Numeric Control
3.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |