cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cgreen1983 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
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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (5,111)