General information
Category:
The Mere Mortals Framework
Title:
BizRules, Warning Messages, and Other things
Hi All,
How can I issue a warning message using a BizRules Object? The validation criteria for a field calls for a warning message if not entered or a certain value. In the BizRules object I can check the field and display the warning message if required. However, if the user answers NO (meaning I don't want to do that) I have to return a broken rule to stop the save and display a message again to the user -- very ugly. Or place val code in the presave hook (which seems to violate the n-tier principle as I understand it from the UT discussion last week). So, is there a way around this situation? Anyone have ideas?
Other things:
Field level validation. The framework only does form level validation using the (preferred) BizRules Object approach. My users (and I) prefer field level validation as well. Anyone done field level validation using the BizRules Object? Just thinking about it leads me to want to add a validation object to each control and have the valid method call it as required. For form level, have the BizRules Object call it in some manner (Maybe using a loop to check each control on the form for an associated validation object) to preserve the n-tier principle.
The BizRules are associated with the KBizObj. Would it not be more flexible to for the BizRules to be associated with the form?
TIA
Robert
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only