Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms presavehook method doesnt fire.
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01256385
Message ID:
01257575
Vues:
15
Brian,

>I have an unbound mmButtonSave on a form. in the forms roverride hookpresave i have some code that i need to fire prior to the save. when the save button is clicked the hook method never fires? Is there somewhere else that I SHOULD BE PUTTING THIS CODE?
>I dont want it in the BO as it only applys to this form.

I think you mean HookPreSave(), but if you look at the Save() methods in mmBusinessForm you can see the hook method is definitely called from all overloads. It sounds like the Save() method isn't firing. You mentioned the button is unbound--which means you haven't set the BindingSource property. In that case, you need to make sure you have specified a primary business object for the form so the Save() executes successfully. If you have already done this, I recommend setting a breakpoint in mmButtonSave() to see what's going on.

Best 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
Répondre
Fil
Voir

Click here to load this message in the networking platform