Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

shortMessage Attribute

Office 2007

Identifies the short error message to return in case of invalid data.

Type

xsd:string

Remarks

The shortMessage attribute is a required attribute of the errorMessage element.

This is displayed in a ScreenTip in the default error user interface. For modal errors, this attribute is ignored and the detailed message is used instead. Maximum length of the error message is 127 characters.

Example

The following is an example of the shortMessage attribute as it is used in the errorMessage element:

<xsf:customValidation>
   <xsf:errorCondition
      match="/exp:expenseReport"
      expressionContext="exp:reportDate"
      expression="msxsl:string-compare(., ../exp:startDate) < 0 and ../exp:startDate != """
      showErrorOn=".">
      <xsf:errorMessage
         type="modeless"
         shortMessage="The report date occurs before the end of the expense period.">
         The report date occurs before the end of the expense period. Verify that this is correct.
      </xsf:errorMessage> 
   </xsf:errorCondition>
</xsf:customValidation>


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.