Skip to main content

Notifications

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

How to update the Sub Page list part when we modify the records in the table?

Posted on by 2,203 Super User 2024 Season 1

Hi community,

I have created a page inside that page I'm adding two subpages list part pages.. 

Main Page

8267.png

SubPage1 = Cast List

SubPage2 = Allocation

In the SubPage1 when I select the record it will pass the key parameters in the sub page2 where it update the records for that page

pastedimage1673601895900v1.png

It is working fine when coming back from another page.

If I select another record in SubPage1 it is updating the record for SubPage2 but not showing until I open another page and come back.

pastedimage1673601985224v2.png

Note that I'm not linking SubPage2 with my main page.

pastedimage1673602134501v3.png

I'm just updating the records in SubPage2 (Allocation) when I select the record in SubPage2(CastList) with the trigger OnAfterGetCurrRecord() in subPage1 (Cast List)

I have tried the CurrPage.Update and many other ways.. I don't know what I'm missing..

Kindly help 

Thanks.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,114 Super User 2024 Season 2 on at
    RE: How to update the Sub Page list part when we modify the records in the table?

    UpdatePropgation = Both; should update the header from subpage.

    try setting it up on Cast List.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: How to update the Sub Page list part when we modify the records in the table?

    hi

    try this

    CurrPage.YOUR_PART.PAGE.UpdatePage;

    check my answer if it helped you, thanks

    DAniele

  • Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: How to update the Sub Page list part when we modify the records in the table?

    Pushparaj Thanks for the reply

    No it is not working..

    even If i update my Subpage when inserting.. cannot be refreshed in Main Page.

    The only problem is that I can only update the subpage in main page.

  • Suggested answer
    Pushparaj Profile Picture
    Pushparaj on at
    RE: How to update the Sub Page list part when we modify the records in the table?

    Hi, 

    Can you Use the Refresh Function on OnAfterGetRecord() Trigger.

    SubPage2.ALLOCATION.Refresh();

    Like this. 

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: How to update the Sub Page list part when we modify the records in the table?

    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

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

    Thank you.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans