Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Refresh page on HTML page close dialog

Posted on by 240

I have a button wherein, on click of the button it will disable the form, and opens a HTML page where in I want to refresh the parent form on close button in HTML. I have tried the below with no luck.

function CloseDialog() {
debugger;
parent.Xrm.Page.data.refresh(); // not working
closeWindow(true);


}

*This post is locked for comments

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Refresh page on HTML page close dialog

    Hello,

    If you are using html web-resource inside form then use parent.Xrm.Page.data.refresh();  but in case if you are opening new window form then use window.parent.Xrm.Page.data.refresh();

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Refresh page on HTML page close dialog

    Hi ,

    did you also try  parent.Xrm.Page.data.refresh(true);   as in pass the true parameter. ?

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