Text Editor
The 'Text Editor' provides the user with standard text field input. This allows a user to simply type values into an editable table cell or TextInput component.

The following options are available in the dialog box:
Pattern Check |
Specifies a regular expression (regex) which the input must match. Failure to match the regular expression will cause the error message to be displayed. |
Error Message |
A text message to display when the pattern check fails. The placeholder “{0}” can be used to insert the user-entered value at a desired location in the error message. Example error message: “The value you entered, {0}, is not acceptable.” |
You can find many regex tutorials and examples on the Internet (e.g., as http://www.regular-expressions.info). Some sample expressions and error message combinations are show below:
Pattern Check |
error message (Suggested) |
^[a-zA-Z0-9_]*$ |
Input can contain only numbers, letters, and underscore (_). |
\d{3}-\d{3}-\d{4} |
Input must be a phone number with form ###-###-####. |
^[a-zA-Z0-9_]{0,15}$ |
Input length must be 15 characters or fewer. |
The following is a summarization of the regular expression syntax.
Alternatives separated by |
Quantified atoms
{n,m} Match at least n but not more than m times.
{n,} Match at least n times.
{n} Match exactly n times.
* Match 0 or more times.
+ Match 1 or more times.
? Match 0 or 1 times.
a . matches everything except \n
a ^ is a null token matching the beginning of a string or line (i.e., the position right after a newline or right before the beginning of a string)
a $ is a null token matching the end of a string or line (i.e., the position right before a newline or right after the end of a string)
Character classes (e.g., [abcd]) and ranges (e.g., [a-z])
Special backslashed characters work within a character class (except for backreferences and boundaries).
\b is backspace inside a character class
Special backslashed characters
\b null token matching a word boundary (\w on one side and \W on the other)
\B null token matching a boundary that isn't a word boundary
\A Match only at beginning of string
\Z Match only at end of string (or before newline at the end)
\n newline
\r carriage return
\t tab
\f formfeed
\d digit [0-9]
\D non-digit [^0-9]
\w word character [0-9a-z_A-Z]
\W a non-word character [^0-9a-z_A-Z]
\s a whitespace character [ \t\n\r\f]
\S a non-whitespace character [^ \t\n\r\f]
\xnn hexadecimal representation of character
\cD matches the corresponding control character
\nn or \nnn octal representation of character unless a backreference.
a \1, \2, \3, etc. match whatever the first, second, third, etc. parenthesized group matched. This is called a backreference. If there is no corresponding group, the number is interpreted as an octal representation of a character.
\0 matches null character
Any other backslashed character matches itself
Expressions within parentheses are matched as subpattern groups and saved for use by certain methods.
See Also
Setting Column Editing Options, for information on setting column options.
Table Properties: Advanced Tab, for information on enabling end-user table editing.
| << 4.1.5 Validating User Input | © 1996-2013 InetSoft Technology Corporation (v11.4) | ComboBox Editor >> |