Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BizRules Do Not Fire
Message
De
07/06/2001 12:02:45
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00516269
Message ID:
00516415
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform