DdsField.ErrorMessageId Property

Gets or sets the conditions that control the error message for the field when a message file is used.

Syntax

BegProp ErrorMessageId Access(*Public) Type(ErrMsgIdProperty)
   BegGet;  BegSet

Property Values

ErrMsgIdProperty object containing the conditional property values for the field when a message file is used.

Remarks

To set the ErrorMessageId property, click on the right hand side of the property window, and the ErrorMessageId Property Editor window will display as shown below.

  • Condition: Enter the indicator expression under which the message will be displayed. Text cannot be specified.
  • MsgID: Enter the message identifier for the message to be displayed.
  • MsgFile: Enter the library (optional) and message file name as [library/]messagefile.
  • ResponseInd: Optionally enter the response indicator that will be set *ON. If the response indicator is entered, it should be the same as the option indicator used to condition the ERRMSGID keyword. After the display of the error message, this indicator is set *OFF. However, if the response indicator is also specified on another keyword, the on/off setting is based on the results of that function.
  • DataField: Optionally enter the field name that contains one or more substitution values used as data fields within the predefined message. The substitution values take the place of the substitution variables defined in the message text when the message initially defined. This field must exist in the record format and defined as *Char.

In the example below, if *IN31 is *ON, myMsgId31 in myMsgFile will be displayed for DataField CSRFLD and *IN98 will be set *ON. See Conditional Properties Overview and Monarch Web Control Indicator Expression Tester for more information on setting the conditional indicators and testing your expressions.

Runtime Considerations for DdsCharField and DdsDecField:

When the control's ErrorMessage or ErrorMessageId properties condition expression evaluates to TRUE at runtime, Monarch Framework appends "_Error" to the control's CssClass property. For example, if the CssClass property is "DdsCharField", then at runtime, the control's generated HTML class attribute would be class="DdsCharField_Error".

Requirements

Namespace: ASNA.Monarch.WebDspF

Assembly: ASNA.Monarch.WebDspF.DLL

Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro