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:
00615122
Vues:
20
All,

>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.

Consider it done! I've added a new method named "PostTransactionHook()" to KBizObj that is executed after the END TRANSACTION is issued in the Save() method:

IF This.lUseTransactions AND NOT llRollback
loExecutant.EndTransaction()
*--- Call the Post-Transaction Hook method ---*
This.PostTransactionHook()
ENDIF

Is this what you need? Should it only run if the lUseTransactions property is set to True (the default)?

You can add this method to your copy of the Framework now and it will be in the upcoming version of Mere Mortals...with gushing affirmation to Paul, Cathi and Jason < s >.

Thanks,
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