cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JohnP
Kudo Kingpin
Kudo Kingpin

Patching/Updating collections inside a Canvas Component

I've made a canvas component with a gallery and other controls inside. I'm passing a collection as an input to the Component. However, there seems to be problems if you want to patch/update this collection inside the component. Filtering/sorting etc. works fine, but the patch/update functions gives the error: "The first argument needs to be a collection" (I give the component_1.input_table as the argument).

1 REPLY 1
JohnP
Kudo Kingpin
Kudo Kingpin

Update: Seems like Components support collections even though the documentation states it doesn't!

 

Check the following thread:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Components-and-collection-warning/m-p/537962...

 

Basically you can use Collect/ClearCollect on the component's table inputs. Then you can reference those collections inside the component. It gives some generic warning, but it works 🙂 

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

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 (62,841)