I have a gallery where i patch the selected record. Im wondering whats the best practice? To have the gallery directly to the datasource or use a collection?
Hi @helpPowerApps ,
I typically use two collections - one that populates the gallery and another one that I use to patch the datasource. Problem with one collection is that if the collection that is populating the gallery is also being updated, the gallery will kind of "refresh" every time the collection gets updated providing for a bad user experience.
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
Microsoft Certified Trainer MCT
ah i thought having the gallery connected to the datasource would be faster? So that theres no need to add ClearCollect to refresh the collection every time theres an update.
Hi @helpPowerApps,
I think it is best to have your gallery attached to a collection. This will reduce the amount of times you need to connect with your data source. This makes your app performance slightly faster.
Please tick Accept as solution if the answer is useful.
Thanks,
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional