cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MBilal-079
Frequent Visitor

PCF Component for View is not Working on Subgrid

Hi 

 

I have an issue with the PCF Component, i have created it for the Views (Entity Grid, SubGrid), it is working properly on Entity Grid but it is not working on Subgrid.

I have created a view and added the custom control, this view is working for the Entity Records, but when i added the subgrid at form (Accounts & Contacts) component is not working. is it my bug or is it not supported yet.?

 

 

Many Thanks in advance.

3 REPLIES 3
ben-thompson
Memorable Member
Memorable Member

It is supported - personally I have more difficulty with entity grids than the subgrids.

 

As it's not working I would suggest adding a debugger statement early on in your code and watch what happens when the form loads the subgrid. 

 

Edit to add - it's worth explaining that PCF components run within an eval statement which means they can often silently fail in interesting ways such as you are checking for a null when undefined is being returned.

---
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".
v-xida-msft
Community Support
Community Support

Hi @MBilal-079 ,

Could you please share a bit more about your scenario?

Do you mean that the custom PCF control could not work on Subgrid in your Model-Driven app form?

 

Currently, the Subgrid control in a Model-Driven app form is used to display views for CDS Entity records. Inserting a PCF custom control into a Subgrid in Model-Driven app form is not supported in PowerApps currently.

If you would like this feature to be added in PowerApps, please consider submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

The PCF custom control could only be bind to Form field in a Model-Driven app currently.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HemantG
Power Apps
Power Apps

PCF can be added to both grids and subgrids. Please share your repro steps, any browser console messages. You can use sample data set control to quick test if this is specific to your control .

Hemant

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (5,642)