The pattern property specifies the pattern for input and output formatting if the field content is a text type. Specify pattern only if the ConsoleField accepts text. The property uses the symbols in the following table.
| Symbol | Meaning |
|---|---|
| A | Placeholder for letters (the subset of characters that are considered to be letters depends on the locale) |
| # | Placeholder for numeric digits |
| X | Placeholder for a required character of any kind |
customerPhoneNumber STRING { pattern = "(###) ###-####" } = 6219655561212;
(219) 555-1212
(219) 555-1212
The property is a STRING type. You cannot update the property at run time.
There is no default value for this property. If you do not specify a format, EGL will not filter the input or output for the field.
| Data item | JSF handler | VGUI record | Console UI | Text Form Java™ | Text Form COBOL | Print Form Java | Print Form COBOL |
|---|---|---|---|---|---|---|---|
| Yes | No | No | Yes | No | No | No | No |