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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 329 members 5,399 guests
Please welcome our newest community members: