The DojoCurrencyTextBox widget defines a text box that contains a numeric currency value. This widget is based on the Dojo dijit.form.CurrencyTextBox definition.
The content of the dictionary is appropriate to your business need.
This validation precedes any others, but is active only after the text box gains focus after having lost focus.
If the inputRequiredMessage field is not present, the error message is the following string, as appropriate to the locale: “This value is required”.
The sequence of validators is invoked when the widget loses focus.
If the Dojo currency text box is referenced by a controller, you can code controller-specific validator functions, which are wholly separate from the functions being described. The controller-specific functions are invoked only if the field-specific validation is successful and only after the widget loses focus.
For details on controllers, see “Rich UI validation and formatting.”
Delegate Validator(input String in, constraints dictionary in) returns(string?) end
You might want to invoke, from your validator, one or more of the functions provided in the DojoLib library.
function showErrorIndicator(aboolean boolean in);
function showErrorMessage(msg string in);
Other supported fields and functions are described in the following topics in the EGL Programmer’s Guide: “Rich UI widget fields” and ”Rich UI widget functions.”
import dojo.widgets.DojoCurrencyTextBox;