Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PostSaveHook
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
PostSaveHook
Miscellaneous
Thread ID:
00613446
Message ID:
00613446
Views:
40
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
Next
Reply
Map
View

Click here to load this message in the networking platform