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:
PostSaveHook
Divers
Thread ID:
00613446
Message ID:
00613446
Vues:
39
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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform