Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PostSaveHook
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00613446
Message ID:
00613498
Vues:
12
>On the form I described in another thread, I decided to put code in the PostSaveHook() to automatically requery my secondary cursor that I'm using in the grid on a cBizObjMaintenanceForm. This way, changes will show up in the grid. Normally this isn't required if your primary bizobj view is the one in the grid.
>
>The problem with doing this (as I found out) was that PostSaveHook() is still in the middle of the transaction. It has just saved the primary bizobj info, but it still hasn't handled the child bizobjs.
>
>Would it be helpful to other developers (besides myself) for something like a PostTransactionHook() method? This may not come up enough for other developers to justify adding it, but who knows. In the meantime I just overrode the Save() method to dodefault(), and on success, requery my view.

I also do the same thing when using transactions. Having a PostTransaction method would be very helpful as part of the base framework.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform