Show Information or warnings only #4009
-
I have to show some 'validation' broken rules' messages as information (or warnings). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
BrokenRulesCollection is the core container of all broken rules for a business object instance. It has properties for ErrorCount, WarningCount, and ErrorCount. You also have a couple useful methods available:
|
Beta Was this translation helpful? Give feedback.
-
@hurcane @rockfordlhotka Thank you :). |
Beta Was this translation helpful? Give feedback.
BrokenRulesCollection is the core container of all broken rules for a business object instance. It has properties for ErrorCount, WarningCount, and ErrorCount. You also have a couple useful methods available:
public BrokenRule GetFirstMessage(string property, RuleSeverity severity) - good for showing per property
public string[] ToArray(RuleSeverity severity) - good for all properties of a certain severity