cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

Hi @Anonymous ,

 

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,963)