Setting the NumberUI parameters
- Click the Turn ON config mode icon.
- Navigate to a WFM page with a field that uses NumberUI as the Field UI type (such as the Job Rate field on the Job page).
-
Click the configuration diamond beside the field.
The Field Localization pop-up is displayed.
-
Set the parameters in the
Field Parameters field, as
required:
- precision=
- Specify the number of decimal places for the field.
- zeroPadding=
- Set to True or
False.
If True, the system will automatically add zeroes to the right of the decimal place when the number does not fulfill the precision requirement. For example, 1.1 is changed to 1.10 when the precision is set to 2.
This parameter is ignored if the precision parameter is absent.
- min=
- Specify the minimum number that the field allows.
- max=
- Specify the maximum number that the field allows.
- renderLocalized=
- Set to True to set the
number format as defined for the user’s locale.
Set to False to set the number format as entered by the user.
- roundingMode=
- Indicates how numbers are rounded. Specify one of these values:
- UP: Round away from zero.
- DOWN: Round toward zero.
- CEILING: Round toward positive infinity
- FLOOR: Round toward negative infinity
- HALF_UP: Round toward the nearest neighbor, then round up if the discarded fraction >=0.5. The nearest neighbor is determined based on the number decimal places specified in the precision parameter.
- HALF_DOWN: Round toward the nearest neighbor, then round down if the discarded fraction >=0.5. The nearest neighbor is determined based on the number decimal places specified in the precision parameter.
- HALF_EVEN: Round toward the nearest neighbor,
then round toward the even neighbor if the discarded fraction >=0.5.
The nearest neighbor is determined based on the number decimal places
specified in the precision
parameter.
Statistically, this mode has been found to minimize cumulative errors.
Note: If you add the roundingMode parameter, it must be assigned a value. If you enter it without a value in the Field Parameters field (roundingMode= ), an "Invalid UI" error is shown.
- Click Save and close the window.
- Click the Turn OFF config mode icon.