Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Sum of line fields in header page field immediately

(1) ShareShare
ReportReport
Posted on by 18
Hi, I want sum of line fields in header page field immediately as soon as the value is entered in any field, I have used calcfield property and on various triggers, but it's only showing the value in header when page is closed and opened again, Plz suggest me code for this one, & also I want to make page non editable on an action, code suggestion for that also 
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 5,678 on at
  • gdrenteria Profile Picture
    gdrenteria 12,830 Most Valuable Professional on at
    Sum of line fields in header page field immediately

    Hi, good day
    I hope this can help you, and give you some hints.

    New NAV 2015/2016 Feature

    Dynamics NAV 2015 - How Do I Update Parent Page from a Subpage in Microsoft

    Best Regards
    Gerardo

  • Suggested answer
    Alexander Drogin Profile Picture
    Alexander Drogin 41 on at
    Sum of line fields in header page field immediately
    Usually UpdatePropagation property is used to facilitate this update: UpdatePropagation property - Business Central | Microsoft Learn
    But the way the question is formulated leaves a lot to interpretation. Posting a sample of the code you are working on would be helpful for the community in understanding the exact problem.
  • Suggested answer
    Ramiz Profile Picture
    Ramiz 414 on at
    Sum of line fields in header page field immediately
    Hi,

    You need to use CurrPage.Update() on validate of the field in the subform that updates the value.
     
    trigger OnAfterValidate()
    begin
    	CurrPage.Update();
    end;
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Stars!

Kudos to all of our 2024 community stars!

Meet the Top 10 leaders for December!

Congratulations to our December super stars!

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,576 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,596 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans