cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LaurensVdd
Level: Power Up

Refresh subgrid from a PowerApps control

Hi,

is there an option to refresh a subgrid control from a powerapps control?

We currently have a setup with 1 subgrid, 1 custom grid. The custom grid creates rows in the subgrid but changes aren't reflected immediately, a manual refresh has to be triggered. 

Can we call the subgrid resfresh somehow?

Laurens Vandendriessche

4 REPLIES 4
Highlighted
ben-thompson
Level 8

Re: Refresh subgrid from a PowerApps control

A PCF component lives in it's own self contained world it doesn't have the ability to talk to or control the other controls on a form.

 

If your custom grid PowerApps control is a field control you could update a bound return value and write a script at the form level to trigger the subgrid refresh as you refresh the bound value.

If you PowerApps control is a DataSet control, sadly, I can't think of any way to tell the page that the datagrid needs to be updated. 

PowerApps Staff HemantG
PowerApps Staff

Re: Refresh subgrid from a PowerApps control

This should be possible. Grid has the refresh and onload events which can be accessed using ClientAPIs. Please see https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/grids... for details.
LaurensVdd
Level: Power Up

Re: Refresh subgrid from a PowerApps control

Hemant,

 

but for calling the refresh of the subgrid I need to be able to get the control from the formcontext. However, I cannot seem to find the formcontext in the context (found several contexts in the unexposed API but formcontext is not one of them).

 

Laurens Vandendriessche

LaurensVdd
Level: Power Up

Re: Refresh subgrid from a PowerApps control

@HemantGAny news on this?

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 211 members 4,892 guests
Please welcome our newest community members: