cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RickBojahra
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
v-monli-msft
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
v-monli-msft
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (18,607)