>>>I have an updatable view containing foreign fields (non updatable fields used to show foreign key name values). When I add or modify a record, I change these fields in the PreSaveHook method. If I could requery the view after a Save, I would get the same result. I don't see any flag to RequeryOnSave. Is there a way this can be done?
>>
>>Hi Rex,
>>
>>Don't know why you would want to requery data that you already have, but hey...
>>
>>What about the PostSaveHook? Forms and Bizobjs have this method, so you could do it at the UI level or at the BO level.
>Two things:
>
>1 I need to have display fields in the view populated and the Requery will do this automatically.
>
>2 The PostSaveHook runs before the end of the transaction so you can't Requery yet. What I need is a place to put the code that runs after the END TRANSACTION.
Hi Rex,
I don't have the code with me now, but doesn't the postsave run AFTER the transaction is completed?
Another alternative might be for you to create a "wrapper" method that calls your save() method and THEN does the requery as you want.
Alex
Low-carb diet not working? Try the Low-food diet instead!