Monday 12 May 2014

Update Header Page from the Line Page


This has always been a difficult trick, even in the good old classic client where youl'd use the dirty timer to do this, but in the RTC it is much, much easier.

Let's say you have added the total document amount as a flowfield to the purchase header...



And when you change the lines you want it to update but it doesn't right...



So let's make it happen. It's really easy.

Go to the subpage (Purchase Order Subform, 54) and create a new function UpdateThePage.
And key in this code with the proper automation variable...



So let's call this function after we entered the Unit Cost.

The reason for two F5's is that it does not update the main page on the first, only the fact boxes.

Be carefull with this hack since all flowfields are recalculated and there will be trafic to the SQL Box.

Enjoy...

Regards,
Sathish
http://sathish-nav.blogspot.com

No comments:

Post a Comment