web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Fields are not updating automatically on changing "connected" field

(0) ShareShare
ReportReport
Posted on by 10

Hi!

I created a page extension with new action that must update a field in some lines on some conditions. 

if JobPlanningLines.findset() then begin
    repeat
        JobPlanningLines."Line Discount %" := (*some formula*);
        JobPlanningLines.modify(true);
    until JobPlanningLines.next() = 0;
end;

In this table there are some fields (like Line Amount) that should be recalculated automatically on changing the Line Discount % field. When I change this field manually, Line Amount changes on the fly automatically. Dut when I change Line Discount % field via my Action, it is changing correctly, but Line Amount fields is not changing.

What should I do to initiate this recalculation after field updating? CurrPage.Update and JobPlanningLines.Validate("Line Discount %") are not working.

Thank you!

I have the same question (0)
  • Verified answer
    Dan Kinsella Profile Picture
    468 on at

    Hi Rifff,

    Have you tried using validate during assignment:

    if JobPlanningLines.findset() then begin

       repeat

           JobPlanningLines.Validate("Line Discount %", (*some formula*));

           JobPlanningLines.modify(true);

       until JobPlanningLines.next() = 0;

    end;

  • Rifff Profile Picture
    10 on at

    Thank you, it works!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 575 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 334 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans