Formatting is available when Numeric data type is selected
as an attribute for the Label and Text Entry Web components. When Numeric is
selected , the Define button for Formatting is enabled in the attributes
view. Click Define to open the Formatting window.
The following
options are available to define formatting for Numeric data type:
- None
- Select this setting to indicate that no formatting is required.
- Edit code
- Select an edit code from the list to apply to the numeric data. The letter
or number indicates that editing should be done according to a defined pattern
before a field is displayed.
- Parameter
- Select None to indicate no additional option for the edit code.
Select asterisk to indicate that leading asterisks should be used.
Select currency to have the floating currency symbol appear to the
left of the first significant digit.
- Sample
- When the Edit code radio button is selected, the effect of the edit code
and the parameter selected is shown in the Positive Value, Negative
Value, and Zero Value fields in the sample area.
- Edit word
- Specify the editing pattern for numeric data. You can specify:
- Blank spaces
- Commas and decimal points, and their position
- Suppression of unwanted zeros
- Leading asterisks
- The currency symbol, and its position
- Addition of constant characters
- Output of the negative sign, or CR, as a negative indicator.
- Get locale-sensitive values from:
- Indicates how the currency symbol, thousands separator, and date separator
are applied when you select Edit code or Edit word.
- When you select host system values, the values for the decimal
symbol, the thousands separator, and the date separator are retrieved from
the host job. The value for the currency symbol is retrieved from the host
system value QCURSYM.
- When you select client locale values, the values for the decimal
symbol, the currency symbol, the thousands separator, and the date separator
are retrieved from the locale of the Web browser at run time.
- When you specify user defined values on the Data tab, the fields
for the currency symbol, the thousands separator, and the date separator can
be changed if you select Edit code or Edit word to enable the
fields. The default values for the currency symbol and for the thousands separator
are retrieved from the locale of the client system at design time. The default
value for the date separator is "/".