You can specify custom validation message templates that are displayed in the Validation Error window: - RuleCriteria checks the Date and Price properties of the referenced DateAndPrice object, and demonstrates how to use read-only parameters and formatted current values of complex path properties (e.g. DateAndPrice.Date.DayOfWeek) in the message; - RuleStringComparison checks the ContainsAbc and GreaterThanZero properties, and demonstrates how to use reserved parameters and rule-specific property values in the message; - RuleFromBoolProperty checks the IsFullStringValid property, and demonstrates how to use the current values of the validated object's properties in the message. All these rules are checked when saving an object.
|