Rocket Uniface 10.4.04-006 Released
Downloads
Product availability Matrix (PAM)
Downloads of this patch are available from the Rocket Customer Support Portal.
New Feature(s)
- The built-in Uniface UX widgets now provide client-side formatting and parsing for date, time, datetime, number, and float values. Values are formatted based on the field's datatype, display layout, database interface, and the user's locale.
The ux-Button, ux-PlainText, and ux-TextField widgets automatically use this formatting capability where applicable. ux-TextField can also display locale-sensitive placeholders to indicate the expected input format.
The UX Interface has also been extended so that custom widgets can provide the same formatting behavior.
The dataInit() lifecycle method now receives an additional dataObject parameter, which is passed to all UX widgets. For field widgets, this provides access to the new Formatter API through dataObject.getFormatter().
For supported datatypes, the formatter provides the following methods:- format(value) - Converts a wire value into a locale-formatted display value.
- parse(value) - Converts a user-entered display value back into a wire value.
- getInputFormat() - Returns the expected input format for the user's locale, allowing widgets to generate locale-aware placeholders.
Existing custom widgets remain unaffected by this change. Developers can choose to use the
Formatter API when they want their widgets to provide the same client-side formatting behavior
as the built-in Uniface UX widgets.
For additional details and usage examples, refer to the documentation.
