Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BizRules, Warning Messages, and Other things
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
BizRules, Warning Messages, and Other things
Divers
Thread ID:
00480506
Message ID:
00480506
Vues:
35
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform