The inputRequiredMsgKey property identifies the message that is displayed if the inputRequired field property is set to YES and the user fails to place data into the field.
The message table (the data table that contains the message) is identified in the msgTablePrefix program property. For more information about the data table name, see DataTable part.
The value of inputRequiredMsgKey is a string or literal that matches an entry in the first column of the message table.
If a numeric key is used with a message table that expects a character key, the number is converted to a character string. If a string literal is used with a message table that expects a numeric key, the value in the string must be a signed or unsigned integer.
Data item | JSF handler | VGUI record | Console UI | Text Form Java™ | Text Form COBOL | Print Form Java | Print Form COBOL |
---|---|---|---|---|---|---|---|
Yes | Yes* | Yes* | No* | Yes* | Yes* | No | No |
* The following additional compatibility considerations apply:
Platform | Issue |
---|---|
Console UI | Though Console UI supports the inputRequired property, it uses a built-in error message that cannot be changed. |
JSF handler | The value of inputRequiredMsgKey is a string or literal that matches an entry in the resource bundle. |
Text UI, VGUI | The value of inputRequiredMsgKey is a string or literal that matches an entry of the first column of the message table identified in the msgTablePrefix program property. A message table is a data table that contains messages; for more information, see DataTable part. If a numeric key is used with a message table that expects a character key, the number is converted to a character string. If a string literal is used with a message table that expects a numeric key, the value in the string must be a signed or unsigned integer. |