Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BizRules Do Not Fire
Message
From
07/06/2001 12:02:45
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00516269
Message ID:
00516415
Views:
14
>A followup:
>
>I recreated the BizRules object and re-tested. The behavior manifest itself when in addmode or after addmode. If I attempt to add a record the bizrules do not fire and anyime after I attempt to add arecord (add then cancel) the bizrules do not fire for following updates. It gets weirder by the minute!

From what I remember, BizRules fire automatically *only* on a BizObj.Save() call. Issuing a New() and subsequent Cancel() will not run them as there is no save attempt. Maybe something (moving to the first page of a pageframe after adding a record on a different page?) inadvertently caused a save attempt on your first test?

By the way, if you want to invoke business rules for allowing new record creation, you can call them directly in the BizObj's AllowNew().

Hope that helps,
---J
Previous
Reply
Map
View

Click here to load this message in the networking platform