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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Child grid calculated field not refreshing when parent changes (D365FO)

(2) ShareShare
ReportReport
Posted on by 196

Question

I have a form in Dynamics 365 Finance & Operations with a parent–child data source structure.


  • Parent: JobLine

  • Child: Layer

In the child grid, there is a calculated field (for example, Ampere) that is calculated from:


  • Fields in the parent table (Quantity, Area)

  • And data from another table (MasterTable.Multiple)

The calculation is correct at the database level, but the issue is UI refresh timing.

Observed behavior:


  • When Quantity or Area is changed in the parent record

  • The calculated value in the child grid does not update immediately

  • The value only updates after clicking around the form, changing focus, or reselecting the record

Question:

What is the correct, framework-compliant approach in D365FO to make a calculated/displayed field in a child data source update immediately (in real time) when values in the parent data source change?

Any guidance or best-practice approach would be appreciated.

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,452 Super User 2025 Season 2 on at
    Hi Statics 365,
     
    There are several commands for refreshing/rereading the data source or form. You can call such method at e.g. the write event of the parent data source.
  • Suggested answer
    Sagar121 Profile Picture
    899 on at
    Hi, 
     
    If you have created display method then you need to put JobLine_ds.observe(). Your child DS don't know then parent DS is changed.
  • Statics 365 Profile Picture
    196 on at
    Thank you for your reply.
    Let me clarify my scenario again:
    - The Ampere field is already implemented as a display method.
    - The display method is on the child table (Layer).
    - The calculation depends on fields from the parent data source (JobLine).
    I understand that the child data source needs to be notified when the parent changes.
    However, I’m still not sure how this should be implemented correctly according to the framework.
    Could you please provide a working code example showing:
    - where observe() should be called
    - and how the parent and child data sources should be wired together
    so that the display method refreshes immediately when the parent record changes?
    Thank you in advance.
     
  • Martin Dráb Profile Picture
    238,127 Most Valuable Professional on at
    You need to call the observe() method of JobLine data source in your display method. Check out Display methods and Form Observability for more details.
  • Sagar121 Profile Picture
    899 on at
    Hi,
     
    Assume you have created display method at form DataSource level so you can call JobLine_ds.observe() inside your display method.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 679 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 421 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 282 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans