web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Model App refresh afte...
Power Apps
Answered

Model App refresh after sub-gid

(0) ShareShare
ReportReport
Posted on by

I have a model app that is using a sub-grid to perform an Order Header/Order Detail type entry format

So the header (Order) is the primary form

Sub-Grid (Order Detail) is placed on a tab on the form

 

I am updating the sub-grid (detail records) and would like a value on the main (Header) table to be updated then the form refresh to show this value.   Think grand total of detail lines entered.

 

I have tried using a flow to update the header record (Total) which works, but the main form is not refreshed.

 

Is there a way to update the main screen when the sub-grid is changed?

Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @RickBojahra ,

     

    Try to embed a canvas app in the model driven form, then refresh the host form from the embedded canvas app using formula:

    ModelDrivenFormIntegration.RefreshForm(false)

    or

     

    ModelDrivenFormIntegration.RefreshForm(true)

     

    For more information, please refer to:

    https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/embedded-canvas-app-actions

     

    Regards,

    Mona

     

  • Kathan Profile Picture
    18 on at

    try calling something like this  on main form load or save event

    function refresh(executionContext) {

       var formContext = executionContext.getFormContext();

         formContext.ui.refresh();

    }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 430

#2
timl Profile Picture

timl 318 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard