cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Patch Count Issue

Hi All,

 

I have an issue collecting data and patching. I have a gallery (1) which displays all orders made by staff. When selected, gallery (2) displays the items in the order. The user can select 1 or more of these items, which then display in pop-up gallery (7). Within gallery (7), the user can update the status of each item (ordered, on hold, cancelled etc). I have a button which then saves this info.

Within the button onselect, I have the attached collection code, which looks at whether gallery(7) includes any items which have been cancelled. If there is a cancelled item, the onselect patches an update to the order (gallery(1)), which then displays an icon. This is so the user can see if the order includes any cancelled items quickly, without having to select each order individually.

This collection and patch isn't working well; the collection starts to collect prior to gallery (7) updating, so it misses the items being updated and therefore does not display the cancelled icon correctly. Is there a way I can either (a) pause the collection until the gallery (7) has updated, or (b) find another way to do this.

 

Thanks,

 

Chris

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Patch Count Issue

Hi @cgreen1983 ,

 

Could you please explain with some sample data about what you are trying to achieve exactly?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,614)