Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CheckRules and BisObj.Save
Message
From
26/02/2001 21:53:09
Rex Mahel
Realm Software, Llc
Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00478957
Message ID:
00479866
Views:
28
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".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform