Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BizRules, Warning Messages, and Other things
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00480506
Message ID:
00480626
Vues:
8
Thanks for the response Alex,

If I understand correctly something liek this:

BizRule sets a property on its BizObj indicating a warning message.

BizObj checks the property in the PreSaveHook and cancels the save if set.

Form receives the FILE_CANCEL message.

Code in the SAVE/SAVERECORD method checks the FILE_CANCEL and the BizObj property

If the BizObj property is set call MSGSVC and check user response of warning.

If User responds YES I want to do this. Reset the BizObj property to a value that will override the warning check, call the SAVERECORD method again. Selects NO take the natural course.


Field Level Validation:

I'll look for that thread. I seem to remember seeing something on field level validation in the last couple of weeks now that my memory had been jogged.. I have build subclasses of some of the controls to do field level validaion by calling the appropriate BizRule method. Particulary checking for Uniqueness in values. Still use the lUniques property to control the call, other validation crietria calls are in a custom method of the control. I think I was looking for some 'mechanics' of how others are performing FLV.

Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform