cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Model App refresh after sub-gid

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

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

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (19,626)