Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CheckRules and BisObj.Save
Message
De
26/02/2001 21:53:09
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00478957
Message ID:
00479866
Vues:
30
Kevin,

In the manual you say to use the PreSaveHook to populate default values, say in the KMoverObj. If you use the business rule objects to cover all cases, one of the rules should be that the foreign keys are not left blank. This is why the PreSaveHook needs to be run before the business rule check. If this is a problem, you could always run the rules check within the PreSaveHook.

Just a thought

Rex

>>Rex,
>>
>>>Shouldn't the business object rules be checked after the PreSaveHook in the kBizObj class. If not, the business rules are run before the foreign key fields can be populated in the bizobj's primary view.>>
>>
>>That's a difficult call! It depends on what you're using the PreSaveHook method for...based on what you're doing in the method, you may not want the code in the PreSaveHook() to be executed *unless* the business rules are validated.
>>
>>I'm open to doing it either way...any input from you lurkers????
>>
>>Regards,
>
> I like the business rules running before the PreSaveHook(). I can't give any concrete reasons why, but it just seems "right".
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform