Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Business Central forum

Is there a better way to update fields on a subform page part

(0) ShareShare
ReportReport
Posted on by

I have a subform listpart that is working nicely. It has a medium complexity calculation that looks at values in the parent page record in order determine branches of logic. As such when 3 or 4 different fields in the parent change, I'd like to reflect that for any records shown in the list, by recalculating values. For this, flowfields don't work.

At the moment, I am putting the following code after these fields in the parent page:

                    trigger OnValidate()

                    begin
                        CurrPage.Update();
                    end;

                

The on the child page I have the following:

    trigger OnAfterGetCurrRecord()

    begin
        Validate(Quantity);
    end;


This appears to work, by forcing the validation of one of the fields which has validation event and a call to calculate specific totals on the line.

However, it seems curiously non-specific and I worry that it might have other repercussions. 

Categories:

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Featured topics

Product updates

Dynamics 365 release plans