Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How can I refresh a section of the page without refreshing the entire window in crm portals?

Posted on by Microsoft Employee

How can I refresh a section of the page without refreshing the entire window in crm portals?
I have a web page created from CRM portals, on this page we have an entity form that contains a metadata that generates a grid with the information of a form, through which I can attach documents.
The problem comes when I attach documents as it refreshes the page with each attached document,
How can I update only one section of the page without refreshing it completely?

*This post is locked for comments

  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    Dmytro Rutkovskyi 1,835 on at
    RE: How can I refresh a section of the page without refreshing the entire window in crm portals?

    I can't completely understand you scenario, bu there are several things to note:

    1) there is standard implementation of some functionality, like attaching files, etc. This standard functionality call the page redirect or refresh, and this can be hardly changed. Like if you add "Attach Document" to the entity form - it will attached on form submit, which basically refresh the form.

    2) If you need reload subgrid on the form, you can ask to to refresh its information from the server without refreshing whole page like this:

    $(".entity-grid.subgrid").trigger("refresh");

    3) Even if form defaulted to make post, you can put it to iframe, and on iframe submit reload the subgrid on your form.
    4) For any scenario of refreshing the data you can use combination of Liquid page and ajax, like described in colinvermander.com/.../dynamics-365-portals-use-liquid-to-return-json-or-xml

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