Tip #25 – Update Header Page from the Line Page

This Blog Article was brought forward from my old blog

Update 2014 : With NAV2015 we now have the UpdatePropagation property that does this

Yes! It is possible!

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.

So what do I mean… and why am I so entousiastic.

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…

Yes, I see you smile. Big Smile Remember this blog?

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…

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.