Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

I have Nested Grid ,On change of field want to Refresh main Entity

Posted on by 745

1. Opportunity

2. OST - Child of Opp

3. OSTD - Child of OST

OST is nested grid in Opportunity, On change of field i want to refresh Opportunity. I added below code but i get unsaved changes message. How to avoid it?

formContext.data.refresh(true).then(function () { }, function () { });

  • mobeenmohsin Profile Picture
    mobeenmohsin on at
    RE: I have Nested Grid ,On change of field want to Refresh main Entity

    Hi,

    Hope you are doing well.

    Please find the information discussed in below thread for similar issue:

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/289315/prevent-onsave-confirmation-dialog-on-xrm-page-data-refesh/861966

    Please mark this post as answer if you are satisfied, thank you.

    Best Regards,

    Mobeen Mohsin

  • pavana Profile Picture
    pavana 745 on at
    How to avoid unsaved changes alert through java script. ?

    This alert pops up on any page refresh code added in script. How to avoid this appearing on form? Please help

    formContext.data.refresh(true).then(function () { }, function () { });

    pastedimage1588341630275v1.png

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 Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans