Article Details
Id:19635
Product:finPOWER Connect
Type:FIX
Version:4.00.00
Opened:30/09/2022
Closed:30/09/2022
Released:21/12/2022
Job: J029743

NumberBox control; May give unnecessary validation warning

The NumberBox control can be configured to not display zeros (i.e,. if the User - or code - sets the value to zero, it will display blank when the control is not focused).

Therefore, if the control has a valid range between, say, 5 and 40 the following should happen:

  • If the User enters zero and the control is set to display zeros (rather than blank), a validation error should be shown
  • However, if the User enters zero and the control is set to blank out zeros for display AND is configured to allow zeros, no validation should occur

Generally, code will handle this but, in many cases it may be that the code has set the control's value to zero. This can be seen on the User Preferences form, Developer, General page. If you focused on the "Font Size" field, a "0" would appear. This would disappear once you focused on a different control. However, clicking the "Apply" or "OK" buttons while the control had focus would cause a validation warning, e.g., "Value must be between 5.0 and 40.0".