Skip to main content

Notifications

Announcements

No record found.

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

Update 'parent' card field of PartList

Posted on by 20

I have a Customer card with an embedded ListPart page of events the customer attended. 

These events have several editable boolean fields. (Checkboxes on the ListPart page)

For one of these fields I have the total of where it is true displayed in the Customer card through an integer field with FieldClass = Flowfield and a Calcformula = Count = (....)

This works nicely, but when I check or uncheck one of the boxes on the ListPart page, the field on the customer card is not updated, when I close the card and open it up again, the field is updated.

Is this in any way possible to have this happen on the fly?

What I have already tried and doesn't work:
UpdatePropagation : this not a valid poperty on a page with Pagetype = Card;

force a CalcField with the Onvalidate triiger as follows:

trigger OnValidate()
var
    customer: Record Customer;
begin
    customer.get(Rec.CustomerId);
    customer.CalcFields(BoolFieldName);
    // With or without the 
    CurrPage.Update();                  
end;

I tried putting this both in the table of the ListPart, as the ListPart Page itself.

Thanks in advance.

  • Andy Sather Profile Picture
    Andy Sather on at
    RE: Update 'parent' card field of PartList

    Hello Filip - No problem.  Partners can still help you on this forum.  We just do not have Microsoft employee's who are also developers monitor the forums.

  • Filip Cremers Profile Picture
    Filip Cremers 20 on at
    RE: Update 'parent' card field of PartList

    Thank you kindly.

    I am very new to the world of Dynamics 365 and am still trying to find my way around.

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: Update 'parent' card field of PartList

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans