Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Entity form getting refreshed while creating a sub grid record

Posted on by 115

Hi All,

I have an Account entity form, in that  added contact subgrid with create contact option. On creation of the contact record whole account entity form getting refreshed instead of only contact subgrid.

I'm not sure whether  missing any configuration. Please suggest.

Thanks & Regards,

Nandhini M

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Entity form getting refreshed while creating a sub grid record

    Hi, 

    I'm facing the same problem and wondering if this behavior is a bug? The reason I'm questing this is a

     window.onbeforeunload = function()

    and clicking "Stay on page" will (of course) not refresh the page but the subgrid will update with the newly created record as I had expected. So the refresh following the postback seems unnecessary. 

  • Suggested answer
    jestuder Profile Picture
    jestuder 156 on at
    RE: Entity form getting refreshed while creating a sub grid record

    You are not missing anything. The reason for this is there is a PostBack that is happening.  We experienced this with a massive CRM Portals roll out we did for a client.  Here is a link to my blog post on how to overcome information being reset on the parent page when a subgrid item is added.

    livingindynamics365.blogspot.com/.../using-session-memory-with-crm-portals.html

    What I ended up having to do was use session memory with onchagne events for input fields on the parent page.  This way on page load values are read from session memory, so the user doesn't lose any input before it is saved to CRM.  When using session memory, once the browser is closed, this ends the session and the memory is cleared.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans