Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
E.PrimaryKeyValue undefined in HookParentRetrieved
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01037966
Message ID:
01038019
Vues:
26
>In the form, I call mdc_main's GetByListId(), which fires the Hook methods. But when it gets to the hook methods, e.PrimaryKeyValue is undefined (null?), and causes them to bomb.

The business object raises an event before and after it does something "interesting". If you are looking at the primary key value at one of the "before" events, the primary key value may very well be null.

To get a closer look at what's happening in the parent business object you can set a breakpoint in mmBusinesObject.CallStateChange(). You can check the value of bizState as well as the primary key value.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform